X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FHTMLCacheUpdate.php;h=992809efcd2569fef09819204dda9a1cd0341790;hb=60596ab27ed238b0adae839781f0867446fc6652;hp=791ae3e8b933b0ed677fc9ff02bec7748115414a;hpb=d310bd7dd7dda9dc6c10b520f4ce1575b68db561;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/HTMLCacheUpdate.php b/includes/cache/HTMLCacheUpdate.php index 791ae3e8b9..992809efcd 100644 --- a/includes/cache/HTMLCacheUpdate.php +++ b/includes/cache/HTMLCacheUpdate.php @@ -62,7 +62,10 @@ class HTMLCacheUpdate implements DeferrableUpdate { JobQueueGroup::singleton()->push( $job ); JobQueueGroup::singleton()->deduplicateRootJob( $job ); } else { // few backlinks ($count might be off even if 0) - $job->run(); // just do the purge query now + $dbw = wfGetDB( DB_MASTER ); + $dbw->onTransactionIdle( function() use ( $job ) { + $job->run(); // just do the purge query now + } ); } wfProfileOut( __METHOD__ );