X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=load.php;h=1997fe73fcdd0852d0cbc2ccc71c162b322b136b;hp=c832237059948450919f8cd895c75e176ae3defb;hb=631e8695b15412ec16c31623cbd6e5aa3d6efb1e;hpb=3302e11b23301ee55196b372c1cf5ff48a5ab6c3 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' ),