Automattic\WooCommerce\Caches
ProductCountCacheService::prime_cache_if_cold
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() 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.
}