Automattic\WooCommerce\Caches

ProductCountCacheService::flush_cache │ public │ WC 11.2.0

Flushes the product count cache.

Method of the class: ProductCountCacheService{}

No Hooks.

Returns

void. Nothing (null).

Usage

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

Changelog

Since 11.2.0 Introduced.

ProductCountCacheService::flush_cache() code WC 11.2.1

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