OpenAI Extends Prompt Cache Retention to 24 Hours

A dark comparison-matrix style cover reading OpenAI Extends Prompt Cache Retention to 24 Hours, listing three row summaries: before a few-minute default cache lifetime, after up to 24 hours, and short-TTL workarounds now likely unnecessary
On this page

What’s actually changing

Third-party cost-analysis coverage (effloow.com), dated 2026-05-29, reports that OpenAI moved the default prompt-cache lifetime from a few minutes to up to 24 hours. That is a meaningfully longer window for anything that reuses the same prompt prefix across separate calls that are not tightly clustered in time.

This is paraphrased from measured third-party analysis, not confirmed against OpenAI’s own primary documentation directly, and is stated honestly as such. The mechanism it changes is retention duration specifically, distinct from the cache-write premium and breakpoint requirements covered separately, and OpenAI’s own prompt caching guide documents an up-to-24-hour extended retention window using the same figure for eligible models.

Structural Comparison Matrix

Operational AspectBeforeAfter
Default cache lifetimeA few minutesUp to 24 hours
Repeated-call workflowsNeeded calls within minutes to hit cacheCan span hours and still hit cache
Workarounds for short TTLCommon (keep-alive pings, tight batching)Likely unnecessary now

Fix it: stop working around a window that no longer exists

If your pipeline previously batched calls tightly, or sent a periodic no-op request, specifically to keep a cache entry alive before it expired, that workaround is likely solving a problem that no longer exists at this scale. A 24-hour window covers most batch jobs, scheduled agent runs, and even a full business day of interactive use without needing an artificial keep-alive.

The more useful change is upstream: this is a good time to restructure prompts so the reusable part, a system instruction, a long reference document, a tool schema, sits at a stable prefix marked as a cache breakpoint (see GPT-5.6 Ends Free Prompt-Cache Writes for how breakpoints work). A longer retention window makes that investment pay off across a wider span of real usage than it did before.

Model the reuse window, not just the write cost

A longer retention window only pays off if your workload actually reuses the cache inside it. The LLM Pricing Calculator lets you compare the cache-write cost against accumulated read savings for your own call pattern, rather than assuming a 24-hour window automatically makes caching worthwhile.

Confirmed version

Sourced from effloow.com’s cost-analysis coverage, dated 2026-05-29, not OpenAI’s own primary documentation directly. Browse more coverage in the AI Productivity archive, or start from The 2026 LLM Token & Pricing Reset hub.

Frequently asked

Does this mean I'm charged extra for holding data in cache for 24 hours?

Not based on retention length itself. The reported change is about how long a cache entry stays eligible for a discounted read, not a separate storage fee. The costs that do apply are the ones covered in GPT-5.6's caching overhaul: a 1.25x premium on the first write, and roughly a 90% discount on reads that hit the cache.

Does every GPT-5.6 call get this longer retention automatically?

That detail isn't independently confirmed. The retention extension is paraphrased from third-party cost-analysis coverage, not OpenAI's own primary documentation, and it's reasonable to assume it applies once a request actually uses cache breakpoints rather than being a blanket change to uncached requests. Verify against your own account's current documentation before relying on a specific retention window.

Emitted as FAQPage JSON-LD from the same frontmatter — one source, no duplicated prose.

Recent posts

Full-text search via Pagefind · ↑↓ to navigate · ↵ to open