wp_cache_switch_to_blog( int $blog_id )

Switches the internal blog ID.


Description

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

Top ↑

See also


Top ↑

Parameters

$blog_id int Required
Site ID.

Top ↑

Source

File: wp-includes/cache.php. View all references

function wp_cache_switch_to_blog( $blog_id ) {
	global $wp_object_cache;

	$wp_object_cache->switch_to_blog( $blog_id );
}


Top ↑

Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.