It should only be saved in the ParserCache if it IS cacheable.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 9 Aug 2010 15:28:23 +0000 (15:28 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 9 Aug 2010 15:28:23 +0000 (15:28 +0000)
Confusion in r67185, when translating the original condition (!= -1)
into the new isCacheable().

includes/OutputPage.php

index f9825ff..9f07201 100644 (file)
@@ -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 );
                }