WP_Object_Cache::reset() – Method | Developer.WordPress.org

Resets cache keys.

Description

See also

Source

public function reset() {
	_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::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 ] );
		}
	}
}

View all references View on Trac View on GitHub

Changelog

VersionDescription
3.5.0Use WP_Object_Cache::switch_to_blog()
3.0.0Introduced.