Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStoreMeta::clear_all_cached_data()
Invalidate all the cache used by this data store.
Method of the class: OrdersTableDataStoreMeta{}
No Hooks.
Return
true|false
. Whether the cache as fully invalidated.
Usage
$OrdersTableDataStoreMeta = new OrdersTableDataStoreMeta(); $OrdersTableDataStoreMeta->clear_all_cached_data(): bool;
OrdersTableDataStoreMeta::clear_all_cached_data() OrdersTableDataStoreMeta::clear all cached data code WC 9.6.0
public function clear_all_cached_data(): bool { if ( ! OrderUtil::custom_orders_table_datastore_cache_enabled() ) { return true; } $cache_engine = wc_get_container()->get( WPCacheEngine::class ); return $cache_engine->delete_cache_group( $this->get_cache_group() ); }