Automattic\WooCommerce\Caching

ObjectCache::flush()publicWC 1.0

Remove all the objects from the cache.

Method of the class: ObjectCache{}

No Hooks.

Return

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

Usage

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

ObjectCache::flush() code WC 9.4.2

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