Automattic\WooCommerce\Caching

CacheEngine::delete_cached_object()publicWC 1.0

Removes a cached object from the cache.

Метод класса: 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 ): bool;
$key(string) (required)
They key under which the object is cached.

Code of CacheEngine::delete_cached_object() WC 7.1.0

public function delete_cached_object( string $key): bool;