X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=load.php;h=974771f9781c832a9c82dba243f5c419641e8fc1;hp=c832237059948450919f8cd895c75e176ae3defb;hb=693c632544dcd8c35bd6a8abd0366c02fcbdf2a3;hpb=279dd4156c6195be16fe497980d73cd2e5c95884 diff --git a/load.php b/load.php index c832237059..974771f978 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,12 @@ if ( !$wgRequest->checkUrlExtension() ) { return; } +// Don't initialise ChronologyProtector from object cache, and +// don't wait for unrelated MediaWiki writes when querying ResourceLoader. +MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->setRequestInfo( [ + 'ChronologyProtection' => 'false', +] ); + // Set up ResourceLoader $resourceLoader = new ResourceLoader( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),