Automattic\WooCommerce\Caches
ProductCountCacheService::flush_cache
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() ProductCountCacheService::flush cache code WC 11.2.1
public function flush_cache(): void {
$this->product_count_cache->flush( 'product' );
}