summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 1f8d9d800..d84815ff0 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -710,7 +710,11 @@ sub audit {
use constant request_cache => Bugzilla::Install::Util::_cache();
sub clear_request_cache {
- %{ request_cache() } = ();
+ my ($class, %option) = @_;
+ my $request_cache = request_cache();
+ my @except = $option{except} ? @{ $option{except} } : ();
+
+ %{ $request_cache } = map { $_ => $request_cache->{$_} } @except;
}
# This is a per-process cache. Under mod_cgi it's identical to the