Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::hpos_data_caching_is_enabled()
Is caching of data within the CustomerOrdersTable datastores enabled?
Method of the class: CustomOrdersTableController{}
No Hooks.
Return
true|false
. True if the caching is enabled within the CustomeOrderTable Datastores.
Usage
$CustomOrdersTableController = new CustomOrdersTableController(); $CustomOrdersTableController->hpos_data_caching_is_enabled(): bool;
CustomOrdersTableController::hpos_data_caching_is_enabled() CustomOrdersTableController::hpos data caching is enabled code WC 9.6.0
public function hpos_data_caching_is_enabled(): bool { return get_option( self::HPOS_DATASTORE_CACHING_ENABLED_OPTION ) === 'yes' && $this->custom_orders_table_usage_is_enabled(); }