Automattic\WooCommerce\Utilities
OrderUtil::orders_cache_usage_is_enabled()
Helper function to get whether the orders cache should be used or not.
Method of the class: OrderUtil{}
No Hooks.
Return
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() OrderUtil::orders cache usage is enabled code WC 9.4.2
public static function orders_cache_usage_is_enabled() : bool { return wc_get_container()->get( OrderCacheController::class )->orders_cache_usage_is_enabled(); }