WP_Object_Cache::flush_group()publicWP 6.1.0

Removes all cache items in a group.

Method of the class: WP_Object_Cache{}

No Hooks.

Return

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() code WP 6.1.1

public function flush_group( $group ) {
	unset( $this->cache[ $group ] );

	return true;
}