X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FDeferredUpdates.php;h=3043c1052f53b304293d299c56260d20ad7702ed;hb=b6a1f3bc774d043c69e9ed2875210049cdda9d68;hp=b97bd216c06253d54aa137f3fdb1314f345672b1;hpb=69d27cc0b6d779af8d870fd0e8ccb5cd41f887ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/DeferredUpdates.php b/includes/deferred/DeferredUpdates.php index b97bd216c0..3043c1052f 100644 --- a/includes/deferred/DeferredUpdates.php +++ b/includes/deferred/DeferredUpdates.php @@ -124,6 +124,9 @@ class DeferredUpdates { /** * Do any deferred updates and clear the list * + * If $stage is self::ALL then the queue of PRESEND updates will be resolved, + * followed by the queue of POSTSEND updates + * * @param string $mode Use "enqueue" to use the job queue when possible [Default: "run"] * @param int $stage DeferredUpdates constant (PRESEND, POSTSEND, or ALL) (since 1.27) */ @@ -260,7 +263,8 @@ class DeferredUpdates { if ( $mode === 'enqueue' && $update instanceof EnqueueableDataUpdate ) { // Run only the job enqueue logic to complete the update later $spec = $update->getAsJobSpecification(); - JobQueueGroup::singleton( $spec['wiki'] )->push( $spec['job'] ); + $domain = $spec['domain'] ?? $spec['wiki']; + JobQueueGroup::singleton( $domain )->push( $spec['job'] ); } elseif ( $update instanceof TransactionRoundDefiningUpdate ) { $update->doUpdate(); } else {