/** * Invalidate a groups object cache * * @param mixed $groups A group or an array of groups to invalidate * * @return bool */ function wp_cache_flush_group($groups = 'default') { return WP_Object_Cache::instance()->flush_groups($groups); }
/** * Switch the internal blog id. * * This changes the blog id used to create keys in blog specific groups. * * @param int $blog_id Blog ID */ function wp_cache_switch_to_blog($blog_id) { WP_Object_Cache::instance()->switch_to_blog($blog_id); }