global $wgEnableParserCache, $wgUser;
$user = is_null( $user ) ? $wgUser : $user;
+ wfProfileIn( __METHOD__ );
// Should the parser cache be used?
$useParserCache = $wgEnableParserCache &&
$user->getStubThreshold() == 0 &&
if ( $useParserCache ) {
$parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() );
if ( $parserOutput !== false ) {
+ wfProfileOut( __METHOD__ );
return $parserOutput;
}
}
$text = $rev->getText();
}
+ wfProfileOut( __METHOD__ );
return $this->getOutputFromWikitext( $text, $useParserCache );
}