Context
In src/template/cache.rs (lines 109-117), advisory .lock files are created during cache operations:
let lock_path = cache_dir.join(format!("{key}.lock"));
let lock_file = std::fs::File::create(&lock_path)?;
lock_file.lock_exclusive()?;
These files persist on disk after the process exits. While they are harmless (empty files), they accumulate over time. clear_cache does not remove them either.
Suggestion
Clean up .lock files after the lock is released, or include them in clear_cache cleanup.
Context
In
src/template/cache.rs(lines 109-117), advisory.lockfiles are created during cache operations:These files persist on disk after the process exits. While they are harmless (empty files), they accumulate over time.
clear_cachedoes not remove them either.Suggestion
Clean up
.lockfiles after the lock is released, or include them inclear_cachecleanup.