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.
Method of the class: OrdersTableDataStoreMeta{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->set_meta_data_for_objects_in_cache( $meta_data );
- $meta_data(stdClass[][]) (required)
- 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 code WC 10.5.0
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() );
}