diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 4c983bd1f..a8917aab8 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -651,12 +651,10 @@ sub local_timezone { ||= DateTime::TimeZone->new(name => 'local'); } -my $request_cache = Bugzilla::Install::Util::_cache(); - -sub request_cache { return $request_cache } +use constant request_cache => Bugzilla::Install::Util::_cache(); sub clear_request_cache { - %$request_cache = (); + %{ request_cache() } = (); } # This is a per-process cache. Under mod_cgi it's identical to the |