wp_cache_switch_to_blog

Advertisement

Summery Summery

Switches the internal blog ID.

Syntax Syntax

wp_cache_switch_to_blog( int $blog_id )

Description Description

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

Parameters Parameters

$blog_id

(int) (Required) Site ID.

Source Source

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 );
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.