Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp cache switch to blog

This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_cache_switch_to_blog/

Description

Switch the interal blog id used to create keys in blog specific groups.

Usage

<code style="color: #000000"> <span style="color: #0000BB"><?php wp_cache_switch_to_blog</span><span style="color: #007700">( </span><span style="color: #0000BB">$blog_id </span><span style="color: #007700">) </span><span style="color: #0000BB">?></span> </code>

Parameters

$blog_id
(integer) (required) Blog ID.
Default: None

Examples

Default Usage

Change Log

Source File

wp_cache_switch_to_blog() is located in wp-includes/cache.php

Related