X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=load.php;h=974771f9781c832a9c82dba243f5c419641e8fc1;hp=2b97f7aa2a85109c68ca13f655e129c2c69c4e76;hb=d3a4c8c5ee57e93951fdbba0f16ac835b2e60492;hpb=47b93ded1388ce5712d0a816db4ddd3466609bcd diff --git a/load.php b/load.php index 2b97f7aa2a..974771f978 100644 --- a/load.php +++ b/load.php @@ -23,11 +23,11 @@ */ use MediaWiki\Logger\LoggerFactory; +use MediaWiki\MediaWikiServices; // This endpoint is supposed to be independent of request cookies and other -// details of the session. Log warnings for violations of the no-session -// constraint. -define( 'MW_NO_SESSION', 'warn' ); +// details of the session. Enforce this constraint with respect to session use. +define( 'MW_NO_SESSION', 1 ); require __DIR__ . '/includes/WebStart.php'; @@ -36,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' ),