From 74b880f13f3fd8a92ea8dfc165307066fae65695 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Thu, 27 Aug 2009 16:28:48 +0000 Subject: [PATCH] I LOVE OO PEOPLE <3 <3 <3 --- includes/Article.php | 3 ++- includes/RawPage.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index f8143ac1ce..5c37d9badf 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3427,7 +3427,8 @@ class Article { */ public function isFileCacheable() { $cacheable = false; - if( HTMLFileCache::useFileCache() ) { + global $wgUseFileCache; + if( $wgUseFileCache and HTMLFileCache::useFileCache() ) { $cacheable = $this->getID() && !$this->mRedirectedFrom; // Extension may have reason to disable file caching on some pages. if( $cacheable ) { diff --git a/includes/RawPage.php b/includes/RawPage.php index 3e38144b16..34aa9fe301 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -135,7 +135,8 @@ class RawPage { $mode = $this->mPrivateCache ? 'private' : 'public'; header( 'Cache-Control: '.$mode.', s-maxage='.$this->mSmaxage.', max-age='.$this->mMaxage ); - if( HTMLFileCache::useFileCache() ) { + global $wgUseFileCache; + if( $wgUseFileCache and HTMLFileCache::useFileCache() ) { $cache = new HTMLFileCache( $this->mTitle, 'raw' ); if( $cache->isFileCacheGood( /* Assume up to date */ ) ) { $cache->loadFromFileCache(); -- 2.20.1