Automattic\WooCommerce\StoreApi\Utilities
RateLimits::set_cache()
Cache a rate limit.
Метод класса: RateLimits{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = RateLimits::set_cache( $action_id, $current_limit );
- $action_id(строка) (обязательный)
- Identifier of the action.
- $current_limit(объект) (обязательный)
- Current limit object with expiry and retries remaining.
Код RateLimits::set_cache() RateLimits::set cache WC 8.7.0
protected static function set_cache( $action_id, $current_limit ) { return wp_cache_set( self::get_cache_key( $action_id ), $current_limit, self::CACHE_GROUP ); }