{"version":"2.1.333","anchor":"precomputed-compact-on-cache-expired-trigger","canonical_anchor":"precomputed-compact-on-cache-expired-trigger","heading":"Compaction after the cache expires can use a summary prepared in advance","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/precomputed-compact-on-cache-expired-trigger","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Compaction after the cache expires can use a summary prepared in advance\n\nWhen compaction runs because the cache has expired, Claude Code can now use a summary it already prepared instead of writing one from scratch\n\n**What**\n\nCompaction is when Claude Code shrinks a long conversation by replacing older parts with a summary. Claude Code can sometimes prepare that summary in advance. Before this change, a summary prepared in advance was only used when compaction was started because the session was idle, because the conversation had grown past a size limit, or because the prompt had become too long. Now it can also be used when compaction is started because the cache expired, provided the summary is ready. The cache is the model provider's short-term memory of the conversation so far.\n\n**Why**\n\nThis could make compaction faster after the cache expires, because the summary does not have to be written at that moment.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}