Automattic\WooCommerce\Caching
ObjectCache::remove()
Remove an object from the cache.
Method of the class: ObjectCache{}
No Hooks.
Return
true|false
. True if the object is removed from the cache successfully, false otherwise (because the object wasn't cached or for other reason).
Usage
$ObjectCache = new ObjectCache(); $ObjectCache->remove( $id ): bool;
- $id(int|string) (required)
- The id of the object to remove.
ObjectCache::remove() ObjectCache::remove code WC 8.7.0
public function remove( $id ): bool { return $this->get_cache_engine()->delete_cached_object( $id, $this->get_object_type() ); }