wp_cache_delete()
Removes the cache contents matching key and group.
Uses: WP_Object_Cache()
No Hooks.
Return
true|false
. True on successful removal, false on failure.
Usage
wp_cache_delete( $key, $group );
- $key(int|string) (required)
- What the contents in the cache are called.
- $group(string)
- Where the cache contents are grouped.
Default: ''
Notes
- See: WP_Object_Cache::delete()
- Global. WP_Object_Cache. $wp_object_cache Object cache global instance.
Changelog
Since 2.0.0 | Introduced. |
Code of wp_cache_delete() wp cache delete WP 5.9.3
function wp_cache_delete( $key, $group = '' ) { global $wp_object_cache; return $wp_object_cache->delete( $key, $group ); }