Remix.run Logo
espeed 21 hours ago

Claude Code's prompt cache expires after 1 hour.

dwaltrip 20 hours ago | parent | next [-]

The cache shouldn't affect inference. It is purely an I/O optimization.

desterothx 18 hours ago | parent | next [-]

I think it should, as you dont need to use the encoder layer on the new tokens, you just read the embedding from the cache. that's why cache reads are cheaper

dwaltrip 17 hours ago | parent [-]

I meant, it shouldn't affect the resulting LLM output. It's a performance optimization that doesn't change the behavior.

cma 13 hours ago | parent | prev [-]

[dead]

namrog84 21 hours ago | parent | prev [-]

Is that from start of a new conversation per conversation?

espeed 20 hours ago | parent [-]

It's supposed to be for token optimization (https://code.claude.com/docs/en/prompt-caching), but are people experiencing degraded performance when you let Claude Code sit for hours/days and come back?

whalesalad 20 hours ago | parent [-]

yes, 100%.