Skip to content

Commit

Permalink
fix: fix ratelimit cache expiration (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 19, 2023
1 parent a49db6f commit dda7250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CachedKeySet.php
Expand Up @@ -213,7 +213,7 @@ private function rateLimitExceeded(): bool

$cacheItem = $this->cache->getItem($this->rateLimitCacheKey);
if (!$cacheItem->isHit()) {
$cacheItem->expiresAfter(1); // # of calls are cached each minute
$cacheItem->expiresAfter(60); // # of calls are cached each minute
}

$callsPerMinute = (int) $cacheItem->get();
Expand Down

0 comments on commit dda7250

Please sign in to comment.