SIGN IN SIGN UP
tw93 / Mole UNCLAIMED

🐹 Deep clean and optimize your Mac.

0 0 83 Shell

fix(analyze): prune expired cache files (#902)

* fix(analyze): prune expired cache files

* fix(analyze): prune cache by scan time

* fix(analyze): revert to mtime-based pruning, always async

Reverts 647e12e. The gob-decode approach was unnecessary overhead:
pruning is opportunistic disk reclamation, not a correctness gate.
loadCacheFromDisk already enforces ScanTime-based expiry at read time,
so the pruner only needs to remove files old enough by wall-clock age.

Use mtime for the expiry check (fast, no I/O into file contents) and
run pruning as a background goroutine in both TUI and --json modes.
C
connorscott1 committed
3a5d19ed0b6238d8f4825bed3c05c0f98088ba83
Parent: 690b529
Committed by GitHub <noreply@github.com> on 5/18/2026, 12:55:27 AM