X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=load.php;h=1997fe73fcdd0852d0cbc2ccc71c162b322b136b;hb=32fc919220e83872ada63e5e4954d9b7402a66ce;hp=c832237059948450919f8cd895c75e176ae3defb;hpb=44a4bdb691fa8765540560f68addf966a39438e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index c832237059..1997fe73fc 100644 --- a/load.php +++ b/load.php @@ -23,6 +23,7 @@ */ use MediaWiki\Logger\LoggerFactory; +use MediaWiki\MediaWikiServices; // This endpoint is supposed to be independent of request cookies and other // details of the session. Enforce this constraint with respect to session use. @@ -35,6 +36,10 @@ if ( !$wgRequest->checkUrlExtension() ) { return; } +// Disable ChronologyProtector so that we don't wait for unrelated MediaWiki +// writes when getting database connections for ResourceLoader. (T192611) +MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection(); + // Set up ResourceLoader $resourceLoader = new ResourceLoader( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),