X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueue.php;h=013cc61bf5f92509ebe1356e135c3722a5cf1c15;hb=b807e976fa09cd31287c1b2e9f2d9142dee410d1;hp=1a68489924ed2ed4273557bfb21bead2f03c867f;hpb=c3f5ee0973fba27bab9a50f83eb637de72f7c659;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueue.php b/includes/jobqueue/JobQueue.php index 1a68489924..013cc61bf5 100644 --- a/includes/jobqueue/JobQueue.php +++ b/includes/jobqueue/JobQueue.php @@ -323,6 +323,12 @@ abstract class JobQueue { $this->doBatchPush( $jobs, $flags ); $this->aggr->notifyQueueNonEmpty( $this->wiki, $this->type ); + + foreach ( $jobs as $job ) { + if ( $job->isRootJob() ) { + $this->deduplicateRootJob( $job ); + } + } } /**