Don't use filecache if $parserOutput->containsOldMagic() either
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 26 Sep 2008 13:55:42 +0000 (13:55 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 26 Sep 2008 13:55:42 +0000 (13:55 +0000)
includes/Article.php

index fd063ec..28a83b7 100644 (file)
@@ -3479,7 +3479,9 @@ class Article {
                        $parserCache->save( $parserOutput, $this, $wgUser );
                }
                // Make sure file cache is not used on uncacheable content.
-               if( $wgUseFileCache && $parserOutput->getCacheTime() == -1 ) {
+               // Output that has magic words in it can still use the parser cache
+               // (if enabled), though it will generally expire sooner.
+               if( $parserOutput->getCacheTime() == -1 || $parserOutput->containsOldMagic() ) {
                        $wgUseFileCache = false;
                }