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

- HackerByte page: <https://hackerbyte.net/en/stories/a-comparison-of-caching-strategies-in-large-language-models-like-claude-and-gpt-50717029>
- Original source: <https://www.requesty.ai/blog/claude-5-minute-prompt-cache>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50717029>
- Submitted to Hacker News: 2026-12-01T16:27:59.000Z

A comparison of caching strategies in large language models like Claude and GPT, focusing on the cost implications of different cache durations.

## AI-generated summary

This analysis reveals significant cost differences between Claude and GPT models due to prompt cache Time To Live \(TTL\) settings. Claude's 5\-minute TTL incurs substantial costs from cache rebuilds during developer pauses, unlike GPT's 30\-minute TTL. Developers can save money by implementing adaptive keep\-alive pings or strategically managing cache lifetimes.

## Key points

- Claude's 5\-minute prompt cache TTL leads to 23.1% of its coding bill being spent on cache rebuilds, compared to 9.3% for GPT's 30\-minute TTL.
- Short pauses \(5\-30 minutes\) are the primary cost driver for Claude, costing more than overnight breaks.
- A 5 to 30 minute pause on Claude Sonnet 5.5 can cost 34x more than on GPT\-6.1 Sol due to cache rebuild frequency.
- Adaptive keep\-alive pings, rather than longer fixed TTLs, offer the most effective net savings on Claude coding bills \(\~8\-9%\).
- Model providers should publish default cache TTLs and consider longer defaults or better cache extension policies.
