Does Fork Chat Affect Cache? And How Long Does Cache Last?

I have a question about Cursor chat behavior:

  1. Does using Fork Chat affect prompt/context cache in any way?
    For example, does a forked chat reuse the same cache, create a new one, or reduce cache efficiency?

  2. Approximately how long does cache last before expiring?
    Is it session-based, time-based, or dependent on context changes?

Would appreciate clarification on how caching works in practice, especially for long coding sessions.

Hey @Abdelrahman_Mohamed!

You’ll get a cache hit on forked chats as long as the cache hasn’t expired!

Each provider is different. Anthropic models, for example, have a 5-minute TTL.

Some recent discussion about caching over here.