Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::set_order_data_in_cache()
Store the raw data for a set of orders in cache.
Метод класса: OrdersTableDataStore{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->set_order_data_in_cache( $order_data );
- $order_data(\stdClass[][]) (обязательный)
- An array of raw order records to set in cache keyed by the order IDs.
Код OrdersTableDataStore::set_order_data_in_cache() OrdersTableDataStore::set order data in cache WC 9.7.1
private function set_order_data_in_cache( array $order_data ) { $cache_engine = wc_get_container()->get( WPCacheEngine::class ); $cache_engine->cache_objects( $order_data, 0, $this->get_cache_group() ); }