Automattic\WooCommerce\Caching

ObjectCache::flush()publicWC 1.0

Remove all the objects from the cache.

Метод класса: ObjectCache{}

Хуков нет.

Возвращает

true|false. True on success, false on error.

Использование

$ObjectCache = new ObjectCache();
$ObjectCache->flush(): bool;

Код ObjectCache::flush() WC 8.7.0

public function flush(): bool {
	return $this->get_cache_engine()->delete_cache_group( $this->get_object_type() );
}