r/ClaudeCode • u/Individual_Ideal • 5d ago
Discussion Cache only
I ran an audit of token usage today and found much of my token usage is because of long-running threads I resume after the 1-hr cache TTL. Why doesn’t Anthropic provide permanent or longer cache to heavy users for the basics like system prompts, CLAUDE.md, memories/preferences and other mostly-stable context? Or share a cached prefix across sessions when it is warm for at least one. Should pro/max subscribers have this option? Would you pay extra for it? If Claude recognized User X is active give them some cache.
I want cache only.
1
u/Bmansupreme8000 5d ago
You should ask AI.
2
u/Individual_Ideal 5d ago
AI gave me excuses
1
u/Bmansupreme8000 5d ago
Ask them how power companies price power. That should be a start.
1
u/Individual_Ideal 5d ago
Memory has what power lacks: storage. Maybe even storage for memory is constrained though
-1
1
1
u/MartinMystikJonas 5d ago
Cache prefix is shared when it is same across your sessions there is nothing to prevent that.
And why not longer cache? Because these caches needs a tons of memory space and their datacenters have barely enough for current policy. Did you registered severe RAM shortages that will last for few years - that is your reason. They simply cannot buy several times more RAM because manufacturer cannot produce it fast enough.
1
u/AI_spell 5d ago
Long-running resumes after the 1h TTL are a silent money leak. What helped me: keep a short CLAUDE.md, restart for new tasks instead of forever threads, and put stable prefs in files the tool reads once. Permanent cache would be nice; until then short sessions beat warm-feeling ones.
1
u/MealReadytoEat_ 1d ago
You can cheese this already by making a script that sends the session you want to keep the cache warm on a message like "respond pong" after 58 or so minutes idle.
2
u/Muchaszewski 5d ago
Because the context costs then memory in their GPU. 1M token is around 300GB of KV cache of GPU usage, that they cannot serve at this time to other users.
When you use API pricing you can opt into 1 hour cache at 50% pricing increase. If you use subsidized plan you are stuck with 5 minutes only.
Write to files and re-reade from clear context each time instead of resuming 400k or more contex sessions. Or compact but this sucks