⌨️FORCE_PROMPT_CACHING_5M
Also known as FORCE_PROMPT_CACHING_5M=1
Set to 1, it makes the cache last five minutes, every time.
Think of it like
It is like a rule from the boss. It beats all the other notes.
Example
Emma's team works in quick turns, so the hour cache just costs more. She sets this for the whole team, and each session uses five minutes.
Why it matters
One line keeps a whole team off the costlier cache, whatever each person set.
Definition
Example code
bash
export FORCE_PROMPT_CACHING_5M=1
claudeCommon mistake
Key takeaways
- 1Five minutes. Always.
- 2Wins over all. TTL and settings.
- 3Cheaper writes. For quick work.