NeuralBridge
Sign in Download IDE
AI NewsLLM, caching

Prompt cache: why the evaluation 97,6% turned into 26,6% in production

In the family TODO bot on Claude via Bedrock, the prompt cache hit rate was 97,6% in sequential evaluation and 26,6% in real use. The author revised the savings estimate taking into account request intervals, cache write cost, and the extra call to a cheap model.

In the published analysis on 7 November 2026, the developer described the difference between the prompt cache evaluation and its performance in production: 97,6% hits versus 26,6%. It concerns a family TODO bot on Claude via Bedrock: test requests were run consecutively, while real ones arrived intermittently over several days.

why was the estimate optimistic?

On a dataset of 121, run sequentially, the cache hit 97,6% of the time. In production the author accounted for 12 irregular requests, and the hit rate was 26,6%. According to his observations, the difference is due not to pricing miscalculations but to a different request rhythm to the model.

With standard TTL of five minutes, a retry request should arrive within this interval. In the prepared estimate calls were sequential, whereas in real scenario the user sent a message when reminded about the task. Consequently many requests resulted in a new cache entry instead of reading the already saved prefix.

A cheap model does not necessarily reduce costs

The author tested a variant where Haiku pre‑determined whether a request belonged to TODO to reduce the number of Sonnet calls. In a test of 130 items, after rule‑based filtering 121 remained. Sonnet calls dropped from 121 to 61, but the estimated cost rose from 44,70 to 47,57 yen — up to 106% of the original. The p95 latency increased from 3 952 to 4 987 ms, and the classifier missed four items.

The explanation is that a large portion of Sonnet input tokens were already served via cache reads. The preliminary cheap‑model call reduced Sonnet calls, but cost reductions occurred mainly on the part that was already cheap.

A one‑hour TTL also requires calculation

In a Bedrock experiment, TTLs of five minutes and one hour were compared for a system prompt of roughly 5 500 tokens. After three minutes, a hit occurred in both variants. After six and 30 minutes, the five‑minute TTL cache no longer fired, while the hourly one kept working. After 65 minutes, both variants resulted in a new write.

A longer TTL does not guarantee savings: the write cost with a one‑hour lifespan is twice the cost of a regular entry. According to the author’s calculation, the break‑even point rose from about 21,7% with a five‑minute TTL to 52,6% with an hour. For the original scenario the result at 26,6% only slightly exceeded the five‑minute threshold, so the author decided to monitor metrics weekly and drop the cache if the metric stays below 20% for an extended period.

What this means for developers

Cache performance should be evaluated on timestamps of real requests, not just on a sequential run of a prepared set. To decide on caching, compare the actual hit rate with the break‑even point for the chosen TTL. If calls are infrequent and spaced by intervals longer than the record’s lifespan, a high test metric may not reflect the application’s costs.

Adding a cheap model before the main one should also be evaluated in terms of total cost, latency, and classification errors. In the case considered, the author chose rule‑based pre‑filtering instead: it excluded 7% of requests and, according to him, missed no suitable cases.

All postsAlso in "AI News"