π― Goal
Cache directory sizes to avoid re-scanning and speed up repeated operations.
π Features
cleanmac --use-cache # Use cached sizes
cleanmac --refresh-cache # Force refresh
π Example
β
Using cached size information (scanned 2h ago)
π To refresh cache, use --refresh-cache
Cached data:
ββ Last scan: 2025-10-06 12:30:45
ββ Directories scanned: 245
ββ Total size calculated: 45.2GB
ββ Cache expires: 2025-10-06 18:30:45 (6h from scan)
π§ Implementation Details
- Store cache in
~/.cleanmac/cache.json
- Include timestamps for invalidation
- Cache directory sizes and file counts
- Configurable expiry (default 6 hours)
- Detect if directories changed
β
Acceptance Criteria
π Related
Part of Phase 5
π― Goal
Cache directory sizes to avoid re-scanning and speed up repeated operations.
π Features
π Example
π§ Implementation Details
~/.cleanmac/cache.jsonβ Acceptance Criteria
π Related
Part of Phase 5