From f793c1b0795768232dfc9f23ee01a7458dd0e0cd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 1 Dec 2023 08:49:17 -0800 Subject: [PATCH] fix: fix ratelimit cache expiration --- src/CachedKeySet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CachedKeySet.php b/src/CachedKeySet.php index ee529f9f..01e27132 100644 --- a/src/CachedKeySet.php +++ b/src/CachedKeySet.php @@ -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();