From abce96323809a4a9a7fc80595ef562e3a7a5438a Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 29 May 2004 12:36:05 +0000 Subject: [PATCH] Save a tag into the cached text indicating the key and the timestamp --- includes/ParserCache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.20.1