wp_cache_switch_to_blog()
Switches the internal blog ID.
This changes the blog id used to create keys in blog specific groups.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
wp_cache_switch_to_blog( $blog_id );
- $blog_id(int) (обязательный)
- Site ID.
Заметки
| Смотрите: WP_Object_Cache::switch_to_blog() |
Global. WP_Object_Cache. $wp_object_cache Object cache global instance. |
Список изменений
| С версии 3.5.0 | Введена. |
Код wp_cache_switch_to_blog() wp cache switch to blog WP 7.1.3
function wp_cache_switch_to_blog( $blog_id ) {
global $wp_object_cache;
$wp_object_cache->switch_to_blog( $blog_id );
}