From: Platonides Date: Mon, 9 Aug 2010 15:28:23 +0000 (+0000) Subject: It should only be saved in the ParserCache if it IS cacheable. X-Git-Tag: 1.31.0-rc.0~35585 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=8affbc7fca1bb2fd6acbd115091be9f7d190f891;p=lhc%2Fweb%2Fwiklou.git It should only be saved in the ParserCache if it IS cacheable. Confusion in r67185, when translating the original condition (!= -1) into the new isCacheable(). --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f9825ffa76..9f07201e0d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1061,7 +1061,7 @@ class OutputPage { $popts, true, true, $this->mRevisionId ); $popts->setTidy( false ); - if ( $cache && $article && !$parserOutput->isCacheable() ) { + if ( $cache && $article && $parserOutput->isCacheable() ) { $parserCache = ParserCache::singleton(); $parserCache->save( $parserOutput, $article, $popts ); }