CourseLarge Language Models: The Complete Course · Module 2: Tokens, Context, and Cost · part 20 of 103
Part 20 · Module 2: Tokens, Context, and Cost

Incident: A timestamp that switched the cache off

15 min read·13 Oct 2026
Module 2 · Incident file · About 30 minutes

What happened

On 7 July 2026, Max Musing, founder and chief executive of Basedash, an AI business-intelligence product, published "How a single timestamp broke our prompt cache" on the company blog. Its chat and dashboard agents send long prompts: tool definitions, system instructions, then the conversation. The provider's cache should have served most of each request from the last one.

It never did. A line in the system prompt gave the model the current date and time, to the second. "Because the timestamp lived in the system prompt, the [tools, system] prefix was different on every request." So "we wrote a fresh cache entry each turn and never once read from one."

BASEDASH, AS TOLD IN ITS 7 JULY 2026 POST time in system to the second new prefix on every request writes, no reads worse than none time moved compaction, no window read ratio the alarm the post gives no duration and no total cost
The failure (red) ran until the timestamp was found; the fixes and the alarm (green) came after, with no duration or cost published.

On their provider a cache write costs more than ordinary input: Anthropic's prompt-caching page lists 5-minute cache writes at 1.25 times the base input price and cache reads at 0.1 times. Musing's verdict: "We were paying the cache-write premium and getting none of the read discount, which is worse than not caching at all." The post does not say how long the line was live or give a total cost, so neither is stated here.

Once they saw it, they went looking for "everything else that was in the wrong place". The timestamp moved into a per-turn message after the cached part, and a 20-message sliding window was replaced by compaction, because "Dropping the oldest message every turn shifts the whole history by one, so the prefix changes every turn by construction." They now chart the share of input tokens read from the cache. "The ratio is the one we watch," and "It also doubles as a regression alarm."

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.