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
53d6ba43
Commit
53d6ba43
authored
Mar 11, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out bug 1251208: it makes checksetup.pl to never end and localconfig is erased
parent
777c785a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
Bugzilla.pm
Bugzilla.pm
+28
-6
No files found.
Bugzilla.pm
View file @
53d6ba43
...
...
@@ -682,21 +682,43 @@ sub local_timezone {
||=
DateTime::
TimeZone
->
new
(
name
=>
'local'
);
}
my
$request_cache
=
{};
sub
request_cache
{
return
$request_cache
}
# This creates the request cache for non-mod_perl installations.
# This is identical to Install::Util::_cache so that things loaded
# into Install::Util::_cache during installation can be read out
# of request_cache later in installation.
our
$_request_cache
=
$
Bugzilla::Install::Util::
_cache
;
sub
request_cache
{
if
(
$ENV
{
MOD_PERL
})
{
require
Apache2::
RequestUtil
;
# Sometimes (for example, during mod_perl.pl), the request
# object isn't available, and we should use $_request_cache instead.
my
$request
=
eval
{
Apache2::
RequestUtil
->
request
};
return
$_request_cache
if
!
$request
;
return
$request
->
pnotes
();
}
return
$_request_cache
;
}
sub
clear_request_cache
{
%
$request_cache
=
();
$_request_cache
=
{};
if
(
$ENV
{
MOD_PERL
})
{
require
Apache2::
RequestUtil
;
my
$request
=
eval
{
Apache2::
RequestUtil
->
request
};
if
(
$request
)
{
my
$pnotes
=
$request
->
pnotes
;
delete
@$pnotes
{(
keys
%
$pnotes
)};
}
}
}
# This is a per-process cache. Under mod_cgi it's identical to the
# request_cache. When using mod_perl, items in this cache live until the
# worker process is terminated.
my
$
process_cache
=
{};
our
$_
process_cache
=
{};
sub
process_cache
{
return
$process_cache
;
return
$
_
process_cache
;
}
# This is a memcached wrapper, which provides cross-process and cross-system
...
...
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