Claude prompt caching operates on an identical prompt prefix extending from the beginning of the request through the configured cache breakpoint. Content preceding that breakpoint must remain consistent across requests for an existing cached representation to be reused.
Placing dynamic session content before the stable prompt prefix introduces request-specific variation into the cacheable region. Session identifiers, timestamps, personalized context, and other frequently changing values can prevent subsequent requests from matching previously cached prefixes.
Anthropic's prompt-caching documentation establishes that caching follows the ordered sequence of tool definitions, system content, and messages. Its cache-diagnostics guidance identifies changes to earlier prompt content as a cause of unexpected cache misses.
The observed reduction in cache_read_input_tokens , combined with increased uncached input consumption, strongly indicates a cache-reuse regression. Stable instructions, tool definitions, and reusable reference material should appear before dynamic request-specific content, with the cache breakpoint positioned at the appropriate stable boundary.
Increasing the static prompt length could increase expenditure but does not independently explain the persistent disappearance of cache reads. Duplicate requests would increase request volume, while longer shopper messages are not supported by the documented deployment evidence.
Restoring stable prefix ordering and monitoring cache-read and cache-creation metrics should recover caching efficiency.
Reference Topics: Claude prompt caching, cache-prefix matching, cache invalidation, prompt-template architecture, cache diagnostics, and input-token expenditure.
Submit