From: Brion Vibber Date: Wed, 17 Dec 2003 09:41:17 +0000 (+0000) Subject: We no longer check the content, so have to make an explicit exception for the main... X-Git-Tag: 1.3.0beta1~1235 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=502964b2dcc691fbf1027c921b0649121fcbe4a2;p=lhc%2Fweb%2Fwiklou.git We no longer check the content, so have to make an explicit exception for the main page for short cache expiry --- diff --git a/includes/Article.php b/includes/Article.php index fce6c59055..56ec140c8a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ); }