{"version":"2.1.333","anchor":"rendering-memory-cache-clears-only-when-full-and-key-is-new","canonical_anchor":"rendering-memory-cache-clears-only-when-full-and-key-is-new","heading":"File cache used for display is emptied less often","tier":"internal","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/rendering-memory-cache-clears-only-when-full-and-key-is-new","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### File cache used for display is emptied less often\n\nA cache of parsed files is now emptied at its size cap only when the file being added is not already in it\n\n**What**\n\nClaude Code keeps a cache of parsed files that it uses when drawing output on screen. A cache is a store of recent results kept so they do not have to be worked out again. The cache used to be emptied whenever it grew past 1000 entries. It is now emptied when it reaches its cap only if the file being looked up is not already in it.\n\n**Why**\n\nA lookup for a file that is already cached no longer throws the whole cache away.\n\n- Area: Terminal UI\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}