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