||= 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
# This is like request_cache, but it's used only by installation code
# for checksetup.pl and things like that.
-my $_cache = {};
-sub _cache { return $_cache; }
+use constant _cache => {};
###############################
# Copied from Bugzilla::Util #