Automattic\WooCommerce\Caches
OrderCacheController::temporarily_disable_orders_cache_usage
Temporarily disable the order cache if it's enabled.
This is a purely in-memory operation: a variable is created with the value of the current enable status for the feature, and this variable is checked by orders_cache_usage_is_enabled. In the next request the feature will be again enabled or not depending on how the feature is set.
Метод класса: OrderCacheController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$OrderCacheController = new OrderCacheController(); $OrderCacheController->temporarily_disable_orders_cache_usage(): void;
Код OrderCacheController::temporarily_disable_orders_cache_usage() OrderCacheController::temporarily disable orders cache usage WC 11.0.1
public function temporarily_disable_orders_cache_usage(): void {
if ( $this->orders_cache_usage_is_temporarly_disabled() ) {
return;
}
$this->orders_cache_usage_backup = $this->orders_cache_usage_is_enabled();
}