Merge "Html: Add buttonAttributes() more diligently"
[lhc/web/wiklou.git] / includes / jobqueue / JobQueue.php
index 1a68489..013cc61 100644 (file)
@@ -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 );
+                       }
+               }
        }
 
        /**