Manual:$wgCacheEpoch/zh

Category:MediaWiki configuration settings/zh#CacheEpochCategory:MediaWiki configuration settings introduced before version 1.1.0/zh#CacheEpochCategory:MediaWiki configuration settings still in use/zh#CacheEpochCategory:Cache variables/zh#CacheEpoch
缓存: $wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
引进版本:1.1.0前
移除版本:仍在使用
允许的值:Date/Time string
'20030516000000'

详情

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 = 20250729022534;

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/zh Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced before version 1.1.0/zh Category:MediaWiki configuration settings still in use/zh