WC_Rate_Limiter::set_cache()
Cache a rate limit.
Метод класса: WC_Rate_Limiter{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = WC_Rate_Limiter::set_cache( $action_id, $expiry );
- $action_id(строка) (обязательный)
- Identifier of the action.
- $expiry(int) (обязательный)
- Timestamp when the limit expires.
Код WC_Rate_Limiter::set_cache() WC Rate Limiter::set cache WC 7.3.0
protected static function set_cache( $action_id, $expiry ) { return wp_cache_set( self::get_cache_key( $action_id ), $expiry, self::CACHE_GROUP ); }