Automattic\WooCommerce\Utilities

OrderUtil::orders_cache_usage_is_enabled()public staticWC 1.0

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() 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();
}