Automattic\WooCommerce\Caching

WpCacheEngine::is_cached()publicWC 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$WpCacheEngine = new WpCacheEngine();
$WpCacheEngine->is_cached( $key ): bool;
$key(string) (required)
-

Code of WpCacheEngine::is_cached() WC 7.1.0

public function is_cached( string $key ): bool {
	return false !== wp_cache_get( $key, self::CACHE_GROUP_NAME );
}