CacheEngine::delete_cached_object()publicWC 1.0

Removes a cached object from the cache.

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

Хуков нет.


true|false. True if the object is removed from the cache successfully, false otherwise (because the object wasn't cached or for other reason).


$CacheEngine = new CacheEngine();
$CacheEngine->delete_cached_object( $key, $group ): bool;
$key(строка) (обязательный)
They key under which the object is cached.
The group under which the object is cached.
По умолчанию: ''

Код CacheEngine::delete_cached_object() WC 7.7.0

public function delete_cached_object( string $key, string $group = '' ): bool;