* (bug 12296) Simplify cache epoch in default LocalSettings.php
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Dec 2007 20:58:37 +0000 (20:58 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 18 Dec 2007 20:58:37 +0000 (20:58 +0000)
RELEASE-NOTES
config/index.php

index dcbbb9f..bc55264 100644 (file)
@@ -250,6 +250,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 12031) All namespaces doesn't work in Special:Newpages
 * (bug 585) Only create searchindex replica table for parser tests if db is MySQL
 * Allow --record option if parserTests.php to work when using Postgres
+* (bug 12296) Simplify cache epoch in default LocalSettings.php
+
 
 == Parser changes in 1.12 ==
 
index 25e4788..c24b963 100644 (file)
@@ -1672,8 +1672,7 @@ if ( \$wgCommandLineMode ) {
 
 # When you make changes to this configuration file, this will make
 # sure that cached pages are cleared.
-\$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
-\$wgCacheEpoch = max( \$wgCacheEpoch, \$configdate );
+\$wgCacheEpoch = max( \$wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
        "; ## End of setting the $localsettings string
 
        // Keep things in Unix line endings internally;