From dfbc167a014c2630e07296777c9d75dd2f0f236d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 3 Jan 2013 00:31:37 +0800 Subject: Bug 822547: Make jobqueue.pl clear the request cache before sending each mail r=dkl,a=LpSolit --- Bugzilla/JobQueue.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/JobQueue.pm b/Bugzilla/JobQueue.pm index 519313448..098ee7935 100644 --- a/Bugzilla/JobQueue.pm +++ b/Bugzilla/JobQueue.pm @@ -93,6 +93,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__ -- cgit v1.2.3-24-g4f1b