From: Aaron Schulz Date: Fri, 24 May 2019 21:05:12 +0000 (-0700) Subject: Make MediaWiki::preOutputCommit() handle PRESEND deferred updates with the "run"... X-Git-Tag: 1.34.0-rc.0~1596 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=314809d35c9779b1f22311bbe297cc07b71eb989;p=lhc%2Fweb%2Fwiklou.git Make MediaWiki::preOutputCommit() handle PRESEND deferred updates with the "run" parameter This means that enqueuable updates (LinksUpdate, LinksDeletionUpdate) will run immediately at this point rather than be enqueued as jobs. This only affects ApiPurge since the other callers use either POSTSEND or "false". Change-Id: I8b6ff6c9a68730374e6d83682e774e4f4bfbf52f --- diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 69bafafb7f..624f0f1101 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -597,7 +597,7 @@ class MediaWiki { wfDebug( __METHOD__ . ': primary transaction round committed' ); // Run updates that need to block the user or affect output (this is the last chance) - DeferredUpdates::doUpdates( 'enqueue', DeferredUpdates::PRESEND ); + DeferredUpdates::doUpdates( 'run', DeferredUpdates::PRESEND ); wfDebug( __METHOD__ . ': pre-send deferred updates completed' ); // T214471: persist the session to avoid race conditions on subsequent requests $request->getSession()->save();