Automattic\WooCommerce\Caching
WPCacheEngine::delete_cache_group()
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() WPCacheEngine::delete cache group code WC 9.4.2
public function delete_cache_group( string $group = '' ): bool { return false !== self::invalidate_cache_group( $group ); }