# IE 5.0 has probs with our caching
return;
}
+ if( $wgUser->getOption( "nocache" ) ) return;
if( $_SERVER["HTTP_IF_MODIFIED_SINCE"] != "" ) {
$ismodsince = wfUnix2Timestamp( strtotime( $_SERVER["HTTP_IF_MODIFIED_SINCE"] ) );
function reportTime()
{
global $wgRequestTime, $wgDebugLogFile, $HTTP_SERVER_VARS;
- global $wgProfiling, $wgProfileStack;
+ global $wgProfiling, $wgProfileStack, $wgUser;
list( $usec, $sec ) = explode( " ", microtime() );
$now = (float)$sec + (float)$usec;
$forward .= " from $from";
if( $forward )
$forward = "\t(proxied via {$HTTP_SERVER_VARS['REMOTE_ADDR']}{$forward})";
+ if($wgUser->getId() == 0)
+ $forward .= " anon";
$log = sprintf( "%s\t%04.3f\t%s\n",
date( "YmdHis" ), $elapsed,
urldecode( $HTTP_SERVER_VARS['REQUEST_URI'] . $forward ) );
global $wgTitle, $wgUser, $wgLang;
global $wgLinkCache, $wgInterwikiMagic;
global $wgNamespacesWithSubpages;
- wfProfileIn( "OutputPage::replaceInternalLinks" );
+ wfProfileIn( $fname = "OutputPage::replaceInternalLinks" );
+ wfProfileIn( "$fname-setup" );
$tc = Title::legalChars() . "#";
$sk = $wgUser->getSkin();
$e1 = "/^([{$tc}]+)\\|([^]]+)]](.*)\$/sD";
$e2 = "/^([{$tc}]+)]](.*)\$/sD";
+ wfProfileOut();
+ wfProfileIn( "$fname-loop" );
foreach ( $a as $line ) {
if ( preg_match( $e1, $line, $m ) ) { # page with alternate text
}
}
wfProfileOut();
+ wfProfileOut();
return $s;
}