Manual:$wgCacheEpoch/zh
From Linux Web Expert
<translate> Cache</translate>: $wgCacheEpoch | |
---|---|
Set this to current time to invalidate all prior cached pages. |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | Date/Time string |
<translate> Default value:</translate> | '20030516000000' |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
详情
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 = 20241229113450;
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 .