From cf9f80d3e9e46f344ac14fca2eea85ef4e24db11 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 10 Jun 2010 15:37:04 +0000 Subject: [PATCH] * Fix for r67185: cache the page if caching is allowed, not the opposite :) * also removed useless check for $this (can this ever be false?) --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 6fb77fff21..c28275e97f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -4458,7 +4458,7 @@ class Article { $this->mTitle->getPrefixedDBkey() ) ); } - if ( $wgEnableParserCache && $cache && $this && !$this->mParserOutput->isCacheable() ) { + if ( $wgEnableParserCache && $cache && $this->mParserOutput->isCacheable() ) { $parserCache = ParserCache::singleton(); $parserCache->save( $this->mParserOutput, $this, $parserOptions ); } -- 2.20.1