summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-09-14 17:36:13 +0200
committerDylan William Hardison <dylan@hardison.net>2016-09-19 17:25:16 +0200
commit6477ccf87c1b77e01dbc3aec8af1d19249b6ca54 (patch)
tree8a07e12fe094ec6bc93fb6decd00b483b254dcea /Bugzilla.pm
parentd10a58f32bb8ebbcd7016e1b8b0072839e70966f (diff)
downloadbugzilla-6477ccf87c1b77e01dbc3aec8af1d19249b6ca54.tar.gz
bugzilla-6477ccf87c1b77e01dbc3aec8af1d19249b6ca54.tar.xz
Bug 1302755 - Optimize request_cache() more
r=jfearn
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm6
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