Uses
Uses | Description |
---|---|
wp-includes/class-wp-object-cache.php: WP_Object_Cache::switch_to_blog() | Switches the internal blog ID. |
Switches the internal blog ID.
This changes the blog id used to create keys in blog specific groups.
(int) (Required) Site ID.
File: wp-includes/cache.php
function wp_cache_switch_to_blog( $blog_id ) { global $wp_object_cache; $wp_object_cache->switch_to_blog( $blog_id ); }
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_switch_to_blog