Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This method has been deprecated. Use switch_to_blog() instead.
Resets cache keys.
File: wp-includes/class-wp-object-cache.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 ] ); } } }
Version | Description |
---|---|
3.5.0 | Use switch_to_blog() |
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/reset