From: Tim Starling Date: Sat, 29 May 2004 12:36:05 +0000 (+0000) Subject: Save a tag into the cached text indicating the key and the timestamp X-Git-Tag: 1.5.0alpha1~3158 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=abce96323809a4a9a7fc80595ef562e3a7a5438a;p=lhc%2Fweb%2Fwiklou.git Save a tag into the cached text indicating the key and the timestamp --- diff --git a/includes/ParserCache.php b/includes/ParserCache.php index d9e5986e53..6b783bf100 100644 --- a/includes/ParserCache.php +++ b/includes/ParserCache.php @@ -37,7 +37,10 @@ class ParserCache function save( $parserOutput, &$article, &$user ){ global $wgMemc; $key = $this->getKey( $article, $user ); - $parserOutput->setTouched( $article->getTouched() ); + $touched = $article->getTouched(); + $parserOutput->setTouched( $touched ); + $parserOutput->mText .= "\n<-- Saved in parser cache with key $key and timestamp $touched -->\n"; + if( $parserOutput->containsOldMagic() ){ $expire = 3600; # 1 hour } else {