Automattic\WooCommerce\Caching

CacheEngine::is_cached()publicWC 1.0

Checks if an object is cached under a given key.

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

Хуков нет.

Возвращает

true|false. True if there's an object cached under the given key, false otherwise.

Использование

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

Код CacheEngine::is_cached() WC 8.7.0

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