Handbuch:$wgInvalidateCacheOnLocalSettingsChange

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgInvalidateCacheOnLocalSettingsChange and the translation is 33% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎日本語
Zwischenspeicher: $wgInvalidateCacheOnLocalSettingsChange
Setting this to true will invalidate all cached pages whenever "LocalSettings.php" is changed
Eingeführt in Version:1.17.0 (r77878)
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:(boolean)
Standardwert:true
Andere Einstellungen: Alphabetisch | Nach Funktion

Details

Setting this to true will invalidate all cached pages whenever LocalSettings.php is changed. This is useful so that if you install a new extension, any old pages that were cached before the extension was installed are re-rendered.

On high-traffic wikis, this should be set to false, to avoid the need to check the file modification time, and to avoid the performance impact of unnecessary cache invalidations.

In previous versions of MediaWiki, this was done by default in "LocalSettings.php" using the following code:
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );

Siehe auch