wp_cache_flush_group() – Removes all cache items in a group, if the object cache implementation supports it.
You appear to be a bot. Output may be restricted
Description
Removes all cache items in a group, if the object cache implementation supports it.
Before calling this function, always check for group flushing support using the wp_cache_supports( 'flush_group' )
function.
Usage
$bool = wp_cache_flush_group( $group );
Parameters
- $group
- ( string ) required – Name of group to remove from cache.
Returns
bool True if group was flushed, false otherwise.
Source
File name: wordpress/wp-includes/cache-compat.php
Lines:
1 to 16 of 16
function wp_cache_flush_group( $group ) { global $wp_object_cache; if ( ! wp_cache_supports( 'flush_group' ) ) { _doing_it_wrong( __FUNCTION__, __( 'Your object cache implementation does not support flushing individual groups.' ), '6.1.0' ); return false; } return $wp_object_cache->flush_group( $group ); }