Re:Pro Max 5x quota exhausted in 1.5 hours despite moderate ...
by highd on Sunday April 12, 2026 @03:34PM
(#47743508)
... so how do API users enable 1hr caching? I haven't found a setting anywhere.
[ Parent
| on HN ]
Re:Pro Max 5x quota exhausted in 1.5 hours despite moderate ...
by g4cg54g54 on Sunday April 12, 2026 @06:58PM
(#47745409)
would like to know this too ;D
there is env.ENABLE_PROMPT_CACHING_1H_BEDROCK - but that is - as the name says "when using Bedrock"
for the raw API the docs are also clear -> "ttl": "1h" https://platform.claude.com/docs/en/build-with-claude/prompt...
but how to make claude-code send that when paying by API-key? or when using a custom ANTHROPIC_BASE_URL? (requests will contain cache_control, but no ttl!)
Re:Pro Max 5x quota exhausted in 1.5 hours despite moderate ...
by g4cg54g54 on Wednesday April 15, 2026 @02:29PM
(#47783188)
seems we have been heard ;)
2.1.108
Added ENABLE_PROMPT_CACHING_1H env var to opt into 1-hour prompt cache TTL on API key, Bedrock, Vertex, and Foundry (ENABLE_PROMPT_CACHING_1H_BEDROCK is deprecated but still honored),
and FORCE_PROMPT_CACHING_5M to force 5-minute TTL
docs are not updated yet, directly from the changelog^And this is "a bit better" - but seemingly still nowhere close to what subscribers get where main thread, agent, initial and follow-up messages may all get there own ?intelligent? 5min or 1h decision :/