X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueGroup.php;h=71d68d9f9336f2e6cbf730c1b9ab9663ee47cf58;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hp=de5f4103ecc76414847ed14bdceb523525cb87af;hpb=d9f412635fa4057a4b3b4d174b798c28dc54b038;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueGroup.php b/includes/jobqueue/JobQueueGroup.php index de5f4103ec..71d68d9f93 100644 --- a/includes/jobqueue/JobQueueGroup.php +++ b/includes/jobqueue/JobQueueGroup.php @@ -120,6 +120,8 @@ class JobQueueGroup { * @return void */ public function push( $jobs ) { + global $wgJobTypesExcludedFromDefaultQueue; + $jobs = is_array( $jobs ) ? $jobs : [ $jobs ]; if ( !count( $jobs ) ) { return; @@ -149,7 +151,7 @@ class JobQueueGroup { 'true', 15 ); - if ( array_intersect( array_keys( $jobsByType ), $this->getDefaultQueueTypes() ) ) { + if ( array_diff( array_keys( $jobsByType ), $wgJobTypesExcludedFromDefaultQueue ) ) { $cache->set( $cache->makeGlobalKey( 'jobqueue', $this->wiki, 'hasjobs', self::TYPE_DEFAULT ), 'true',