⌨️DISABLE_PROMPT_CACHING
Also known as DISABLE_PROMPT_CACHING_OPUS, DISABLE_PROMPT_CACHING_SONNET, DISABLE_PROMPT_CACHING_HAIKU, DISABLE_PROMPT_CACHING_FABLE
Set to 1, it turns prompt caching off for every model.
Think of it like
It is like you never keep notes. You read the whole book each time.
Example
Jack's proxy breaks on cache fields. He turns caching off to prove it, and the error goes away.
Why it matters
It is a quick way to check if caching is the cause of a problem.
Definition
Example code
bash
export DISABLE_PROMPT_CACHING=1
claudeCommon mistake
Key takeaways
- 1All models. Or one family.
- 2All wins. Over the family ones.
- 3Costs more. No saved prompt.