Automattic\WooCommerce\StoreApi\Utilities
RateLimits::get_cache_key
Gets a cache prefix.
Метод класса: RateLimits{}
Хуков нет.
Возвращает
Строку
.
Использование
$result = RateLimits::get_cache_key( $action_id ): string;
- $action_id(строка) (обязательный)
- Identifier of the action.
Код RateLimits::get_cache_key() RateLimits::get cache key WC 10.0.2
protected static function get_cache_key( $action_id ): string { return WC_Cache_Helper::get_cache_prefix( 'store_api_rate_limit' . $action_id ); }