Search the documentation
2 pages for force_prompt_caching_5m.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…ontrol applies, Claude Code takes the first match in this order: 1. `FORCE_PROMPT_CACHING_5M=1`, which forces five minutes for both buckets 2. The bucket's environment variable 3. The bucket's settin…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…t-caching#which-ttl-each-request-gets) * **Per-session overrides**: [`FORCE_PROMPT_CACHING_5M`](/docs/en/env-vars) takes precedence over everything else, then [`CLAUDE_CODE_PROMPT_CACHE_TTL`](/docs/en…