public function loadAllowance($request, $action)
    {
        $allowance = Yii::$app->cache->get($action->controller->id . ':' . $action->id . ':' . $this->id . '_allowance');
        $allowanceUpdatedAt = Yii::$app->cache->get($action->controller->id . ':' . $action->id . ':' . $this->id . '_allowance_update_at');
        if ($allowance && $allowanceUpdatedAt) {
            return [$allowance, $allowanceUpdatedAt];
        } else {
            return [Yii::$app->settings->get('requestRateLimit', 'user', 60), time()];
        }
    }