We no longer check the content, so have to make an explicit exception for the main...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Dec 2003 09:41:17 +0000 (09:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Dec 2003 09:41:17 +0000 (09:41 +0000)
includes/Article.php

index fce6c59..56ec140 100644 (file)
@@ -1219,8 +1219,8 @@ class Article {
                $called = true;
                if($this->isFileCacheable()) {
                        $touched = $this->mTouched;
-                       if( strpos( $this->mContent, "{{" ) !== false ) {
-                               # Expire pages with variable replacements in an hour
+                       if( $this->mTitle->getPrefixedDBkey() == wfMsg( "mainpage" ) ) {
+                               # Expire the main page quicker
                                $expire = wfUnix2Timestamp( time() - 3600 );
                                $touched = max( $expire, $touched );
                        }