Automattic\WooCommerce\Caching
ObjectCache::flush()
Remove all the objects from the cache.
Метод класса: ObjectCache{}
Хуков нет.
Возвращает
true|false
. True on success, false on error.
Использование
$ObjectCache = new ObjectCache(); $ObjectCache->flush(): bool;
Код ObjectCache::flush() ObjectCache::flush WC 7.7.2
public function flush(): bool { return $this->get_cache_engine()->delete_cache_group( $this->get_object_type() ); }