Automattic\WooCommerce\Caches

ProductCountCacheService::flush_cache │ public │ WC 11.2.0

Flushes the product count cache.

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$ProductCountCacheService = new ProductCountCacheService();
$ProductCountCacheService->flush_cache(): void;

Список изменений

С версии 11.2.0 Введена.

Код ProductCountCacheService::flush_cache() WC 11.2.2

public function flush_cache(): void {
	$this->product_count_cache->flush( 'product' );
}