WordPress at a glance
function is not described

WP_Object_Cache::reset() public WP 3.0.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use switch_to_blog() instead.

Resets cache keys.

{} It's a method of the class: WP_Object_Cache{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->reset();

Notes

Changelog

Since 3.0.0 Introduced.
Deprecated Since 3.5.0 Use switch_to_blog()

Code of WP_Object_Cache::reset() WP 5.7.2

<?php
public function reset() {
	_deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' );

	// Clear out non-global caches since the blog ID has changed.
	foreach ( array_keys( $this->cache ) as $group ) {
		if ( ! isset( $this->global_groups[ $group ] ) ) {
			unset( $this->cache[ $group ] );
		}
	}
}