Automattic\WooCommerce\Caching

WPCacheEngine::delete_cache_group()publicWC 1.0

Deletes all cached objects under a given group.

Method of the class: WPCacheEngine{}

No Hooks.

Return

true|false. True if the group is deleted successfully, false otherwise.

Usage

$WPCacheEngine = new WPCacheEngine();
$WPCacheEngine->delete_cache_group( $group ): bool;
$group(string)
The group to delete.
Default: ''

WPCacheEngine::delete_cache_group() code WC 9.4.2

public function delete_cache_group( string $group = '' ): bool {
	return false !== self::invalidate_cache_group( $group );
}