WP_Object_Cache::flush_group
Removes all cache items in a group.
Method of the class: WP_Object_Cache{}
No Hooks.
Returns
true. Always returns true.
Usage
$WP_Object_Cache = new WP_Object_Cache(); $WP_Object_Cache->flush_group( $group );
- $group(string) (required)
- Name of group to remove from cache.
Changelog
| Since 6.1.0 | Introduced. |
WP_Object_Cache::flush_group() WP Object Cache::flush group code WP 6.9.1
public function flush_group( $group ) {
unset( $this->cache[ $group ] );
return true;
}