Skip to content

fix(cache): evict disk cache states incrementally in LRU order - #2400

Merged
abetlen merged 4 commits into
abetlen:mainfrom
resonance-null-backend:lezo3-disk-cache-capacity
Nov 23, 2026
Merged

abetlen merged 4 commits into
abetlen:mainfrom
resonance-null-backend:lezo3-disk-cache-capacity

Conversation

@resonance-null

@resonance-null resonance-null commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Avoid evicting useful disk-cache states when only one removal is needed.

  • Preserve the LRU policy and configured capacity introduced in fix(cache): preserve disk cache entries on lookup #2423.
  • Replace ten-entry public cull batches with single-entry policy-aware eviction inside a transaction, using DiskCache internal helpers.
  • Cover reopening, oversized states, access recency, and inserts requiring multiple evictions.

Validation: five isolated cache checks passed with DiskCache 5.6.3 and synthetic states; native model loading and the full suite were not run.

@abetlen abetlen changed the title fix(cache): honor configured disk cache capacity fix(cache): evict disk cache states incrementally in LRU order Nov 23, 2026
@abetlen
abetlen merged commit e9d4234 into abetlen:main Nov 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants