Swipe notes
US23%
USHacker News

Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses

danvdb Claude's 5-minute timer is 23% of your coding bill

Link shared in the post ↗

What people say

compiler-guy · Hacker News
Everything old is new again. Something similar was a time honored technique for getting an OS scheduler to keep a long-running task at interactive priority by writing a character to the console every so often, so it looked like an interactive process. How to defeat these countermeasures used to be covered in os courses. I suspect the llm vendors will adopt similar techniques. https://algomaster.io
Wowfunhappy · Hacker News
I find it really weird that Anthropic uses only a five minute cache on the API. Even in the course of actively working on something without explicit pauses, lots of commands (compiling, running tests, etc) take longer than five minutes to complete. I of course don't know what it costs Anthropic to keep the cache warm—but since their subscription plans use one hour, they must have concluded a longe
Aurornis · Hacker News
On a subscription plan (not API requests) Claude Code defaults to 1-hour cache duration for the main conversation and 5 minutes for subagents. So if you're not paying API rates, you need not worry. You can force the main conversation or subagents to either 5 minute or 1 hour in the Claude settings file if you would like. If you are paying API rates, paying close attention to caching is important.

Topics: Tech · People are talking

Sources

[1] Hacker News