Manual:$wgCacheEpoch/ru

Category:MediaWiki configuration settings/ru#CacheEpochCategory:MediaWiki configuration settings introduced before version 1.1.0/ru#CacheEpochCategory:MediaWiki configuration settings still in use/ru#CacheEpochCategory:Cache variables/ru#CacheEpoch
Кэш: $wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
Введено в версии:Before 1.1.0
Удалено в версии:всё ещё используется
Допустимые значения:Date/Time string
Значение по умолчанию:'20030516000000'

Details

Set this to a timestamp to invalidate all pages cached prior to that (e.g. to the current time to invalidate all currently cached pages). Affects both client- and server-side caching, including assets controlled by the Загрузчик ресурсов.

For a quick copy-paste you can use the following line, whose timestamp is generated via {{CURRENTTIMESTAMP}}:

$wgCacheEpoch = 20250703181431;

If you are using a Unix-like system you can get the current date by entering the following on the command-line:

date +%Y%m%d%H%M%S

To force a file, such as LocalSettings.php to be re-read when touched, you can use $wgInvalidateCacheOnLocalSettingsChange.

См. также

Category:Cache variables/ru Category:MediaWiki configuration settings/ru Category:MediaWiki configuration settings introduced before version 1.1.0/ru Category:MediaWiki configuration settings still in use/ru