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