summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-03-21 22:12:55 +0100
committerDylan Hardison <dylan@mozilla.com>2016-03-21 22:13:31 +0100
commitda0347e9af601ec04d8f5095775ab538bd2ead6b (patch)
treeada816b4c5e3a6e044a06d300808abe2f3dd6982 /Bugzilla
parent0cac98dfb514063de4201cd0037c465922cbef48 (diff)
downloadbugzilla-da0347e9af601ec04d8f5095775ab538bd2ead6b.tar.gz
bugzilla-da0347e9af601ec04d8f5095775ab538bd2ead6b.tar.xz
Bug 1251208 - Bugzilla->request_cache() can be faster
r=dkl,a=dylan without breaking stuff this time.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/Util.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm
index 90ef2d4e3..3ec185c2b 100644
--- a/Bugzilla/Install/Util.pm
+++ b/Bugzilla/Install/Util.pm
@@ -651,15 +651,8 @@ sub prevent_windows_dialog_boxes {
# This is like request_cache, but it's used only by installation code
# for checksetup.pl and things like that.
-our $_cache = {};
-sub _cache {
- # If the normal request_cache is available (which happens any time
- # after the requirements phase) then we should use that.
- if (eval { Bugzilla->request_cache; }) {
- return Bugzilla->request_cache;
- }
- return $_cache;
-}
+my $_cache = {};
+sub _cache { return $_cache; }
###############################
# Copied from Bugzilla::Util #