Automattic\WooCommerce\Caching
CacheEngine::delete_cached_object()
Removes a cached object from the cache.
Method of the class: CacheEngine{}
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
$CacheEngine = new CacheEngine(); $CacheEngine->delete_cached_object( $key, $group ): bool;
- $key(string) (required)
- They key under which the object is cached.
- $group(string)
- The group under which the object is cached.
Default: ''
CacheEngine::delete_cached_object() CacheEngine::delete cached object code WC 9.4.2
public function delete_cached_object( string $key, string $group = '' ): bool;