Podręcznik:$wgCacheEpoch
Appearance
| Cache: $wgCacheEpoch | |
|---|---|
| Set this to current time to invalidate all prior cached pages. |
|
| Wprowadzono w wersji: | Before 1.1.0 |
| Usunięto w wersji: | nadal w użyciu |
| Dozwolone wartości: | Date/Time string |
| Domyślna wartość: | '20030516000000' |
| Inne ustawienia: Alfabetycznie | Według funkcji | |
Szczegóły
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 ResourceLoader.
For a quick copy-paste you can use the following line, whose timestamp is generated via {{CURRENTTIMESTAMP}}:
$wgCacheEpoch = 20260413085638;
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.