From 502964b2dcc691fbf1027c921b0649121fcbe4a2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 17 Dec 2003 09:41:17 +0000 Subject: [PATCH] We no longer check the content, so have to make an explicit exception for the main page for short cache expiry --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.20.1