Save a tag into the cached text indicating the key and the timestamp
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 29 May 2004 12:36:05 +0000 (12:36 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 29 May 2004 12:36:05 +0000 (12:36 +0000)
includes/ParserCache.php

index d9e5986..6b783bf 100644 (file)
@@ -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 {