X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fparser%2FParserCache.php;h=7c5eeb4a8fdbb0725e27dd9c2c84ce0f763b9aa6;hb=1afc53f3782882faa79fd2b819bc4002a950b1df;hp=d41962127a83614c224524db2d88f0b454c55f5f;hpb=4dacfda31a2c8ff236cd95039abf923c6a10b1bb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index d41962127a..7c5eeb4a8f 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -67,7 +67,7 @@ class ParserCache { // idhash seem to mean 'page id' + 'rendering hash' (r3710) $pageid = $article->getID(); - $renderkey = (int)($wgRequest->getVal('action') == 'render'); + $renderkey = (int)( $wgRequest->getVal( 'action' ) == 'render' ); $key = wfMemcKey( 'pcache', 'idhash', "{$pageid}-{$renderkey}!{$hash}" ); return $key; @@ -128,7 +128,7 @@ class ParserCache { public function getKey( $article, $popts, $useOutdated = true ) { global $wgCacheEpoch; - if( $popts instanceof User ) { + if ( $popts instanceof User ) { wfWarn( "Use of outdated prototype ParserCache::getKey( &\$article, &\$user )\n" ); $popts = ParserOptions::newFromUser( $popts ); } @@ -227,7 +227,7 @@ class ParserCache { public function save( $parserOutput, $article, $popts ) { $expire = $parserOutput->getCacheExpiry(); - if( $expire > 0 ) { + if ( $expire > 0 ) { $now = wfTimestampNow(); $optionsKey = new CacheTime;