wp_start_object_cache example

$site_id = $current_blog->site_id;
    wp_load_core_site_options( $site_id );
}

$wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php. $wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id );
$table_prefix       = $wpdb->get_blog_prefix();
$_wp_switched_stack = array();
$switched           = false;

// Need to init cache again after blog_id is set. wp_start_object_cache();

if ( ! $current_site instanceof WP_Network ) {
    $current_site = new WP_Network( $current_site );
}

if ( ! $current_blog instanceof WP_Site ) {
    $current_blog = new WP_Site( $current_blog );
}

// Define upload directory constants. ms_upload_constants();


global $wpdb;
// Include the wpdb class and, if present, a db.php database drop-in. require_wp_db();

// Set the database table prefix and the format specifiers for database table columns. $GLOBALS['table_prefix'] = $table_prefix;
wp_set_wpdb_vars();

// Start the WordPress object cache, or an external object cache if the drop-in is present. wp_start_object_cache();

// Attach the default filters. require ABSPATH . WPINC . '/default-filters.php';

// Initialize multisite if enabled. if ( is_multisite() ) {
    require ABSPATH . WPINC . '/class-wp-site-query.php';
    require ABSPATH . WPINC . '/class-wp-network-query.php';
    require ABSPATH . WPINC . '/ms-blogs.php';
    require ABSPATH . WPINC . '/ms-settings.php';
} elseif ( ! defined( 'MULTISITE' ) ) {
    
Home | Imprint | This part of the site doesn't use cookies.