From a5655cfdf27ba739571ddb6049a11b13e8067b4d Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 19 Jul 2010 23:08:52 +0000 Subject: [PATCH] Update the old magic with new one. Not only should this have used setContainsOldMagic() instead of manually modifying the member, the outdated magic reduced the caching time to one hour even if you just used something like {{currentmonth}}, which is hinted to one day. This is the only usage of old magic, we could remove it but perhaps it is used by some extension? --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 737194810a..7d591b1b53 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3021,7 +3021,7 @@ class Parser { if ( $id !== false ) { $text = $this->getVariableValue( $id, $frame ); if ( MagicWord::getCacheTTL( $id ) > -1 ) { - $this->mOutput->mContainsOldMagic = true; + $this->mOutput->updateCacheExpiry( MagicWord::getCacheTTL( $id ) ); } $found = true; } -- 2.20.1