Automattic\WooCommerce\Caches

OrderCacheController::orders_cache_usage_is_temporarly_disabled()publicWC 1.0

Check if the order cache has been temporarily disabled.

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

Хуков нет.

Возвращает

true|false. True if the order cache is currently temporarily disabled.

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

$OrderCacheController = new OrderCacheController();
$OrderCacheController->orders_cache_usage_is_temporarly_disabled(): bool;

Код OrderCacheController::orders_cache_usage_is_temporarly_disabled() WC 8.9.3

public function orders_cache_usage_is_temporarly_disabled(): bool {
	return null !== $this->orders_cache_usage_backup;
}