Automattic\WooCommerce\Utilities

OrderUtil::orders_cache_usage_is_enabledpublic staticWC 1.0

Helper function to get whether the orders cache should be used or not.

Method of the class: OrderUtil{}

No Hooks.

Returns

true|false. True if the orders cache should be used, false otherwise.

Usage

$result = OrderUtil::orders_cache_usage_is_enabled(): bool;

OrderUtil::orders_cache_usage_is_enabled() code WC 10.3.3

public static function orders_cache_usage_is_enabled(): bool {
	return wc_get_container()->get( OrderCacheController::class )->orders_cache_usage_is_enabled();
}