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 Notable New Features
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
New FeaturesKind: in v2.1.300,
What probably matters to youSection of the release

Unclear What CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL actually changes when set is not shown.

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.

Read from
What the documentation says
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 doubtWhat `CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL` actually changes when set is not shown.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL

See this entry in the whole of v2.1.300 →

Feedback