Add ability to query by domain and/or path to get_blog_details(). Improve blog details caching. Use get_blog_details() in ms-settings.php so queries are cached. see #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-02-13 23:09:54 +00:00
parent 731eada144
commit 98e8daa20a
3 changed files with 72 additions and 17 deletions

View File

@@ -59,7 +59,7 @@ if ( WP_CACHE )
// Define WP_LANG_DIR if not set.
wp_set_lang_dir();
// Include early WordPress files.
// Load early WordPress files.
require( ABSPATH . WPINC . '/compat.php' );
require( ABSPATH . WPINC . '/functions.php' );
require( ABSPATH . WPINC . '/classes.php' );
@@ -73,17 +73,17 @@ wp_set_wpdb_vars();
// Start the WordPress object cache, or an external object cache if the drop-in is present.
wp_start_object_cache();
// Load early WordPress files.
require( ABSPATH . WPINC . '/plugin.php' );
require( ABSPATH . WPINC . '/default-filters.php' );
include_once( ABSPATH . WPINC . '/pomo/mo.php' );
// Initialize multisite if enabled.
if ( is_multisite() ) {
require( ABSPATH . WPINC . '/blogs.php' );
require( ABSPATH . WPINC . '/ms-settings.php' );
}
// Load early WordPress files.
require( ABSPATH . WPINC . '/plugin.php' );
require( ABSPATH . WPINC . '/default-filters.php' );
include_once( ABSPATH . WPINC . '/pomo/mo.php' );
// Stop most of WordPress from being loaded if we just want the basics.
if ( SHORTINIT )
return false;