r3741 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3740‎ | r3741 | r3742 >
Date:12:36, 29 May 2004
Author:timstarling
Status:old
Tags:
Comment:
Save a tag into the cached text indicating the key and the timestamp
Modified paths:
  • /trunk/phase3/includes/ParserCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ParserCache.php
@@ -37,7 +37,10 @@
3838 function save( $parserOutput, &$article, &$user ){
3939 global $wgMemc;
4040 $key = $this->getKey( $article, $user );
41 - $parserOutput->setTouched( $article->getTouched() );
 41+ $touched = $article->getTouched();
 42+ $parserOutput->setTouched( $touched );
 43+ $parserOutput->mText .= "\n<-- Saved in parser cache with key $key and timestamp $touched -->\n";
 44+
4245 if( $parserOutput->containsOldMagic() ){
4346 $expire = 3600; # 1 hour
4447 } else {

Status & tagging log