global $wgMemc, $wgMagicWords, $wgMwRedir, $wgDebugLogFile;
global $wgMessageCache, $wgUseMemCached, $wgUseDatabaseMessages;
global $wgMsgCacheExpiry, $wgDBname, $wgCommandLineMode;
-global $wgBlockCache, $wgParserCache, $wgParser;
+global $wgBlockCache, $wgParserCache, $wgParser, $wgDontTrustMemcachedWithImportantStuff;
# Useful debug output
if ( $wgCommandLineMode ) {
}
wfProfileOut( "$fname-memcached" );
-wfProfileIn( "$fname-misc" );
-
+wfProfileIn( "$fname-language" );
require_once( "languages/Language.php" );
$wgMessageCache = new MessageCache;
if ( !is_object($wgLang) ) {
print "No language class ($wgLang)\N";
}
+wfProfileOut( "$fname-Language" );
+wfProfileIn( "$fname-MessageCache" );
+
$wgMessageCache->initialise( $messageMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, $wgDBname );
+wfProfileOut( "$fname-MessageCache" );
+wfProfileIn( "$fname-OutputPage" );
+
$wgOut = new OutputPage();
wfDebug( "\n\n" );
+wfProfileOut( "$fname-OutputPage" );
+wfProfileIn( "$fname-DateFormatter" );
+
if ( $wgUseDynamicDates ) {
require_once( "DateFormatter.php" );
global $wgDateFormatter;
$wgDateFormatter = new DateFormatter;
}
+wfProfileOut( "$fname-DateFormatter" );
+wfProfileIn( "$fname-SetupSession" );
+
if( !$wgCommandLineMode && ( isset( $_COOKIE[ini_get("session.name")] ) || isset( $_COOKIE["{$wgDBname}Password"] ) ) ) {
User::SetupSession();
}
+wfProfileOut( "$fname-SetupSession" );
+wfProfileIn( "$fname-BlockCache" );
+
$wgBlockCache = new BlockCache( true );
+
+wfProfileOut( "$fname-BlockCache" );
+wfProfileIn( "$fname-User" );
+
if( $wgCommandLineMode ) {
# Used for some maintenance scripts; user session cookies can screw things up
# when the database is in an in-between state.
} else {
$wgUser = User::loadFromSession();
}
+
+wfProfileOut( "$fname-User" );
+wfProfileIn( "$fname-misc" );
+
$wgDeferredUpdateList = array();
$wgLinkCache = new LinkCache();
$wgMagicWords = array();
$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
$wgArticle = new Article($wgTitle);
+wfProfileOut( "$fname-misc" );
+wfProfileIn( "$fname-extensions" );
+
# Extension setup functions
# Entries should be added to this variable during the inclusion
# of the extension file. This allows the extension to perform
$func();
}
-wfProfileOut( "$fname-misc" );
+wfProfileOut( "$fname-extensions" );
wfProfileOut( $fname );