From: Platonides Date: Mon, 19 Jul 2010 23:08:52 +0000 (+0000) Subject: Update the old magic with new one. X-Git-Tag: 1.31.0-rc.0~36073 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=a5655cfdf27ba739571ddb6049a11b13e8067b4d;p=lhc%2Fweb%2Fwiklou.git 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? --- 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; }