v1.5.0
Stops the shared download cache from growing without bound. Source videos are cached at ~/.cache/analyze-video/downloads/ and reused across runs; this release makes that cache self-managing and adds a manual clear.
Added
- Self-managing download cache. At the end of each run,
process.pyevicts cached downloads older than 14 days and trims the cache back under 5 GB total (least-recently-used first). It never removes the download the current run depends on, or one a concurrent run holds via an.in_uselease. Tune the limits withANALYZE_VIDEO_CACHE_MAX_AGE_DAYSandANALYZE_VIDEO_CACHE_MAX_GB(set either to0to disable that limit). - Manual cache clear.
python3 scripts/setup.py --clear-cachewipes cached downloads and reports how much space it freed, while leaving thedocxmodule cache intact and skipping anything an in-progress analysis is using.setup.py --jsonnow reports the current cache size asdownload_cache_bytes.
Safety
- Cache maintenance is intentionally strict: it only ever deletes directories directly under the downloads cache whose names are 16-character hex cache keys, and refuses to operate if that path is a symlink, so unrelated data (including the sibling
docxnode_modulescache) is never at risk.
Full Changelog: v1.4.0...v1.5.0