Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStoreMeta::set_meta_data_for_objects_in_cache()privateWC 1.0

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() 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() );
}