This method has been deprecated. Use switch_to_blog() instead.

WP_Object_Cache::reset()

Resets cache keys.


Description

See also


Source

File: wp-includes/cache.php

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


Changelog

Changelog
Version Description
WP-3.5.0 Use switch_to_blog()
WP-3.0.0 Introduced. This method has been deprecated. Use switch_to_blog() instead.