Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

fix: restore usage API cache TTL to 10 minutes to prevent upstream 42…#811

Open
gaogao1030 wants to merge 1 commit intoWei-Shaw:mainfrom
gaogao1030:fix/restore-usage-cache-ttl
Open

fix: restore usage API cache TTL to 10 minutes to prevent upstream 42…#811
gaogao1030 wants to merge 1 commit intoWei-Shaw:mainfrom
gaogao1030:fix/restore-usage-cache-ttl

Conversation

@gaogao1030
Copy link

The apiCacheTTL was changed from 10 minutes to 3 minutes in fac19d2 with no explanation. This causes the backend to call Anthropic's Usage API ~3.3x more frequently, triggering IP-based rate limiting when multiple OAuth accounts load concurrently on the admin accounts page.
截屏2026-03-06 16 22 06
截屏2026-03-06 16 22 28

…9 errors

The apiCacheTTL was changed from 10 minutes to 3 minutes in fac19d2
with no explanation. This causes the backend to call Anthropic's Usage
API ~3.3x more frequently, triggering IP-based rate limiting when
multiple OAuth accounts load concurrently on the admin accounts page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant