Fix the inactivity_threshold, fixes #257
Build / lint (push) Canceled after 0s
Build / test (false, 3.10) (push) Canceled after 0s
Build / test (false, 3.11) (push) Canceled after 0s
Build / test (false, 3.12) (push) Canceled after 0s
Build / test (false, 3.13) (push) Canceled after 0s
Build / test (false, 3.8) (push) Canceled after 0s
Build / test (false, 3.9) (push) Canceled after 0s
Build / coverage (push) Canceled after 0s

This commit is contained in:
Dave Halter committed 2026-11-01 13:34:07 +01:00
1 parent b26da16316
commit 1e397f7472
1 file changed
+1 -1
+1 -1
View File
@@ -219,7 +219,7 @@ def clear_inactive_cache(
if not version_path.is_dir():
continue
for file in os.scandir(version_path):
if file.stat().st_atime + _CACHED_FILE_MAXIMUM_SURVIVAL <= time.time():
if file.stat().st_atime + inactivity_threshold <= time.time():
try:
os.remove(file.path)
except OSError: # silently ignore all failures