Automattic\WooCommerce\Caches

ProductCountCacheService::prime_cache_if_coldpublicWC 1.0

Primes the product count cache for a given post type when it is cold.

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

Хуков нет.

Возвращает

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

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

$ProductCountCacheService = new ProductCountCacheService();
$ProductCountCacheService->prime_cache_if_cold( $product_type ): void;
$product_type(строка)
The product post type.
По умолчанию: 'product'

Код ProductCountCacheService::prime_cache_if_cold() WC 11.0.1

public function prime_cache_if_cold( string $product_type = 'product' ): void {
	// Until persistent counters reactivated, this task is no-op.
}