On this page
WP_Object_Cache::flush_group( string $group ): true
Removes all cache items in a group.
Parameters
$groupstring Required-
Name of group to remove from cache.
Return
true Always returns true.
Source
File: wp-includes/class-wp-object-cache.php. View all references
public function flush_group( $group ) {
unset( $this->cache[ $group ] );
return true;
}
Related
Used By
| Used By | Description |
|---|---|
| wp_cache_flush_group() wp-includes/cache-compat.php | Removes all cache items in a group, if the object cache implementation supports it. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/flush_group