X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParserCache.php;h=ad131f4a926e29fca5b054af7b16e76b507b1d98;hb=4ac9dbee4a1c0688da6dfa91e8c6419c1bd16f69;hp=795230035c06a3ef1f1951f871b95630b04b54ea;hpb=27615c9ca1dbbc1b087eccd8b8b6ba7ffe52e5c3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index 795230035c..ad131f4a92 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -184,12 +184,10 @@ class ParserCache { */ public function get( $article, $popts, $useOutdated = false ) { global $wgCacheEpoch; - wfProfileIn( __METHOD__ ); $canCache = $article->checkTouched(); if ( !$canCache ) { // It's a redirect now - wfProfileOut( __METHOD__ ); return false; } @@ -198,7 +196,6 @@ class ParserCache { $parserOutputKey = $this->getKey( $article, $popts, $useOutdated ); if ( $parserOutputKey === false ) { wfIncrStats( 'pcache_miss_absent' ); - wfProfileOut( __METHOD__ ); return false; } @@ -206,7 +203,6 @@ class ParserCache { if ( !$value ) { wfDebug( "ParserOutput cache miss.\n" ); wfIncrStats( "pcache_miss_absent" ); - wfProfileOut( __METHOD__ ); return false; } @@ -233,7 +229,6 @@ class ParserCache { wfIncrStats( "pcache_hit" ); } - wfProfileOut( __METHOD__ ); return $value; }