dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
384183b
)
Save a tag into the cached text indicating the key and the timestamp
author
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 29 May 2004 12:36:05 +0000
(12:36 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 29 May 2004 12:36:05 +0000
(12:36 +0000)
includes/ParserCache.php
patch
|
blob
|
history
diff --git
a/includes/ParserCache.php
b/includes/ParserCache.php
index
d9e5986
..
6b783bf
100644
(file)
--- 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 {