wp_cache_delete_multiple()
Deletes multiple values from the cache in one call.
No Hooks.
Return
true|false[]
. Array of return values, grouped by key. Each value is either true on success, or false if the contents were not deleted.
Usage
wp_cache_delete_multiple( $keys, $group );
- $keys(array) (required)
- Array of keys under which the cache to deleted.
- $group(string)
- Where the cache contents are grouped.
Default: ''
Notes
- See: WP_Object_Cache::delete_multiple()
- Global. WP_Object_Cache. $wp_object_cache Object cache global instance.
Changelog
Since 6.0.0 | Introduced. |
wp_cache_delete_multiple() wp cache delete multiple code WP 6.6.2
function wp_cache_delete_multiple( array $keys, $group = '' ) { global $wp_object_cache; return $wp_object_cache->delete_multiple( $keys, $group ); }