WordPress at a glance
function is not described

wp_cache_reset() WP 2.6.0

Deprecated in 3.5.0 WP_Object_Cache::reset(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Reset internal cache keys and structures.

If the cache back end uses global blog or site IDs as part of its cache keys, this function instructs the back end to reset those keys and perform any cleanup since blog or site IDs have changed since cache init.

This function is deprecated. Use wp_cache_switch_to_blog() instead of this function when preparing the cache for a blog switch. For clearing the cache during unit tests, consider using wp_cache_init(). wp_cache_init() is not recommended outside of unit tests as the performance penalty for using it is high.

  • See: WP_Object_Cache::reset()
  • Global. WP_Object_Cache. $wp_object_cache Object cache global instance.

No Hooks.


Nothing (null).



Code of wp cache reset: wp-includes/cache.php WP 5.2.2

function wp_cache_reset() {
	_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::reset()' );

	global $wp_object_cache;