Automattic\WooCommerce\Caches
OrderCacheController::orders_cache_usage_is_enabled()
Whether order cache usage is enabled. Currently, linked to custom orders' table usage.
Метод класса: OrderCacheController{}
Хуков нет.
Возвращает
true|false
. True if the order cache is enabled.
Использование
$OrderCacheController = new OrderCacheController(); $OrderCacheController->orders_cache_usage_is_enabled(): bool;
Код OrderCacheController::orders_cache_usage_is_enabled() OrderCacheController::orders cache usage is enabled WC 9.2.3
public function orders_cache_usage_is_enabled(): bool { return OrderUtil::custom_orders_table_usage_is_enabled(); }