Anthropic changed the cache TTL to five minutes, back in March.
Thanks, didn’t realise the API and Claude Code had different TTL.