Automattic\WooCommerce\Caching

WPCacheEngine::delete_cache_group()publicWC 1.0

Deletes all cached objects under a given group.

Метод класса: WPCacheEngine{}

Хуков нет.

Возвращает

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

Использование

$WPCacheEngine = new WPCacheEngine();
$WPCacheEngine->delete_cache_group( $group ): bool;
$group(строка)
The group to delete.
По умолчанию: ''

Код WPCacheEngine::delete_cache_group() WC 9.3.3

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