aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ParserCache.php
diff options
context:
space:
mode:
authorAntoine Musso <hashar@users.mediawiki.org>2007-04-21 21:35:21 +0000
committerAntoine Musso <hashar@users.mediawiki.org>2007-04-21 21:35:21 +0000
commit7ba6fcbbbec99869c3a405069b866cb11e54176b (patch)
treeda6924902affa8034c58fd1274740abefb23035a /includes/ParserCache.php
parente69f21ec68b975abced5ba19b86789691cf801b3 (diff)
downloadmediawikicore-7ba6fcbbbec99869c3a405069b866cb11e54176b.tar.gz
mediawikicore-7ba6fcbbbec99869c3a405069b866cb11e54176b.zip
Kill some more whitespaces
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21458
Diffstat (limited to 'includes/ParserCache.php')
-rw-r--r--includes/ParserCache.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/includes/ParserCache.php b/includes/ParserCache.php
index ad95979c39d5..1489fcf9d1b3 100644
--- a/includes/ParserCache.php
+++ b/includes/ParserCache.php
@@ -90,31 +90,30 @@ class ParserCache {
function save( $parserOutput, &$article, &$user ){
global $wgParserCacheExpireTime;
$key = $this->getKey( $article, $user );
-
+
if( $parserOutput->getCacheTime() != -1 ) {
-
+
$now = wfTimestampNow();
$parserOutput->setCacheTime( $now );
-
+
// Save the timestamp so that we don't have to load the revision row on view
$parserOutput->mTimestamp = $article->getTimestamp();
-
+
$parserOutput->mText .= "\n<!-- Saved in parser cache with key $key and timestamp $now -->\n";
wfDebug( "Saved in parser cache with key $key and timestamp $now\n" );
-
+
if( $parserOutput->containsOldMagic() ){
$expire = 3600; # 1 hour
} else {
$expire = $wgParserCacheExpireTime;
}
$this->mMemc->set( $key, $parserOutput, $expire );
-
+
} else {
wfDebug( "Parser output was marked as uncacheable and has not been saved.\n" );
}
-
}
-
+
}
?>