Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6477ccf8
Commit
6477ccf8
authored
Sep 14, 2016
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1302755 - Optimize request_cache() more
r=jfearn
parent
d10a58f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
Bugzilla.pm
Bugzilla.pm
+2
-4
Util.pm
Bugzilla/Install/Util.pm
+1
-2
No files found.
Bugzilla.pm
View file @
6477ccf8
...
...
@@ -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
...
...
Bugzilla/Install/Util.pm
View file @
6477ccf8
...
...
@@ -657,8 +657,7 @@ 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.
my
$_cache
=
{};
sub
_cache
{
return
$_cache
;
}
use
constant
_cache
=>
{};
###############################
# Copied from Bugzilla::Util #
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment