From db7f17159336dfea5afac5aab0eaa7434267ba47 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 26 Sep 2008 13:55:42 +0000 Subject: [PATCH] Don't use filecache if $parserOutput->containsOldMagic() either --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index fd063ecc90..28a83b71e2 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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; } -- 2.20.1