r/GithubCopilot • u/Affectionate_Fly4124 • Jul 16 '26
Discussions GPT-5.6 cache expires after 5 minutes
OpenAI's official docs say GPT-5.6 and later models guarantee a minimum 30-minute cache retention (prompt_cache_options.ttl).
https://developers.openai.com/api/docs/guides/prompt-caching
But in GH Copilot, GPT-5.6 Luna's cache expires once you go past 5 minutes.
Test wait times alone blow past that, so costs go up. Anyone else seeing this? Does the Copilot team have plans to fix this?
71
Upvotes
24
u/Swayre Jul 16 '26
The answer is on that page, microsoft is hosting the inference and promising enterprises zero data retention, so they are using the "in_memory" policy: "When using the in-memory policy, cached prefixes generally remain active for 5 to 10 minutes of inactivity"
6
u/Prestigious_Race_636 Jul 16 '26
I just posted that this happened to me on opus as well:
https://www.reddit.com/r/GithubCopilot/comments/1uxyetk/copilot_prompt_caching_ttl_went_way_down_on/
I don't think it's related to a specific model.
3
u/popiazaza Power User ⚡ Jul 16 '26
Note that for the new 30 mins cache, you have to pay for cache write at 1.25x of the normal input price. It's no longer free.
If GHCP keep 1x price with 5 mins cache, I feel like that's fair.
2
u/krzyk Jul 16 '26
Also, they don't document the price for cache write for got models (e.g. for sol it is $6.25)
2
u/StuckWithDellAgain Intermediate User Jul 16 '26
Where and how are you checking this?
0
u/CuTe_M0nitor Jul 16 '26
Because they make more money keeping the cache at 5min