X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=blobdiff_plain;f=maintenance%2FrebuildFileCache.php;h=d484392d7e4beb5e26d2761bc987bb3ef604b8b3;hb=4614803a581f7b7de0297fad3ab9b3c1c25b199e;hp=2cdf418b2544d8da40bb326ce8e1e1d061a71d2f;hpb=af7ae6c804be8629fe2305e3a088f03e1af2fa9b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index 2cdf418b25..d484392d7e 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -43,18 +43,18 @@ class RebuildFileCache extends Maintenance { } public function finalSetup() { - global $wgDebugToolbar, $wgUseFileCache; + global $wgUseFileCache; $this->enabled = $wgUseFileCache; // Script will handle capturing output and saving it itself $wgUseFileCache = false; - // Debug toolbar makes content uncacheable so we disable it. - // Has to be done before Setup.php initialize MWDebug - $wgDebugToolbar = false; // Avoid DB writes (like enotif/counters) MediaWiki\MediaWikiServices::getInstance()->getReadOnlyMode() ->setReason( 'Building cache' ); + // Ensure no debug-specific logic ends up in the cache (must be after Setup.php) + MWDebug::deinit(); + parent::finalSetup(); }