Manual:$wgCacheEpoch

From MediaWiki.org

Jump to: navigation, search
Cache: $wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed Values: Date/Time string
Default Value: '20030516000000'

Other settings: Alphabetical | By Function


[edit] Details

Set this to current time to invalidate all prior cached pages. Affects both client- and server-side caching.

If you are using Linux you can get the current date by entering the following on the command-line:

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

Another way to invalidate prior cached pages is to tether invalidation to the modify timestamp of your LocalSettings.php. To do so, include this line in your LocalSettings.php if it is not already there.

 $wgCacheEpoch = gmdate( 'YmdHis', @filemtime( __FILE__ ) );