WP_Object_Cache::switch_to_blog

Advertisement

Summery Summery

Switches the internal blog ID.

Syntax Syntax

WP_Object_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

(Required) Blog ID.

Source Source

File: wp-includes/class-wp-object-cache.php

	public function stats() {
		echo '<p>';
		echo "<strong>Cache Hits:</strong> {$this->cache_hits}<br />";
		echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply