Automattic\WooCommerce\Caching
ObjectCache::get_cache_engine_instance
Get the instance of the cache engine to use.
Метод класса: ObjectCache{}
Хуков нет.
Возвращает
CacheEngine.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_cache_engine_instance(): CacheEngine;
Код ObjectCache::get_cache_engine_instance() ObjectCache::get cache engine instance WC 10.8.1
protected function get_cache_engine_instance(): CacheEngine {
return wc_get_container()->get( WPCacheEngine::class );
}