Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.300 ·

New CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL variable can force 5-minute caching

Setting CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL to 5m forces the main conversation's prompt cache to last 5 minutes

Group of 2 Use it now Improvements
JSON All of v2.1.300
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Prompt CachingArea: what it touches
ImprovementsKind: in v2.1.300,
What probably matters to youSection of the release

Unclear It is unclear whether the main conversation is still cached at all when this variable overrides a one-hour lifetime, since one request path then drops its cache marker.

What

The prompt cache lets the model reuse earlier parts of a conversation instead of processing them again, for a set time called the TTL (time to live). CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL is a new environment variable, a setting handed to Claude Code when it starts:

Why

It is a separate control from CLAUDE_CODE_PROMPT_CACHE_TTL and FORCE_PROMPT_CACHING_5M, so you can shorten caching for the main conversation's messages on their own.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is unclear whether the main conversation is still cached at all when this variable overrides a one-hour lifetime, since one request path…

See this entry in the whole of v2.1.300 →

Feedback