wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_cache_switch_to_blog › WordPress Function

Since3.5.0
Deprecatedn/a
wp_cache_switch_to_blog ( $blog_id )
Parameters:
  • (int) $blog_id Site ID.
    Required: Yes
See:
Defined at:
Codex:

Switches the internal blog ID.

This changes the blog id used to create keys in blog specific groups.


Source

function wp_cache_switch_to_blog( $blog_id ) {
	global $wp_object_cache;

	$wp_object_cache->switch_to_blog( $blog_id );
}