Automattic\WooCommerce\Caches
ProductCountCacheService::flush_cache
Flushes the product count cache.
Метод класса: ProductCountCacheService{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ProductCountCacheService = new ProductCountCacheService(); $ProductCountCacheService->flush_cache(): void;
Список изменений
| С версии 11.2.0 | Введена. |
Код ProductCountCacheService::flush_cache() ProductCountCacheService::flush cache WC 11.2.2
public function flush_cache(): void {
$this->product_count_cache->flush( 'product' );
}