summaryrefslogtreecommitdiffstats
path: root/Bugzilla/JobQueue.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-12-20 04:33:44 +0100
committerByron Jones <bjones@mozilla.com>2012-12-20 04:33:44 +0100
commit3154c482b5b1adb5c9229106d2130bc87439e627 (patch)
tree21dce2fe11b62f9caef2d8cd83ff171a1af5f033 /Bugzilla/JobQueue.pm
parent41221bbee3b170411f404080798e2f976b0e1c3e (diff)
downloadbugzilla-3154c482b5b1adb5c9229106d2130bc87439e627.tar.gz
bugzilla-3154c482b5b1adb5c9229106d2130bc87439e627.tar.xz
Bug 822547: jobqueue.pl should clear the request cache before sending each mail
Diffstat (limited to 'Bugzilla/JobQueue.pm')
-rw-r--r--Bugzilla/JobQueue.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/JobQueue.pm b/Bugzilla/JobQueue.pm
index 7ea678345..e719efa04 100644
--- a/Bugzilla/JobQueue.pm
+++ b/Bugzilla/JobQueue.pm
@@ -99,6 +99,13 @@ sub insert {
return $retval;
}
+# Clear the request cache at the start of each run.
+sub work_once {
+ my $self = shift;
+ Bugzilla->clear_request_cache();
+ return $self->SUPER::work_once(@_);
+}
+
1;
__END__