This cache timeout is pretty useless in practice.

This commit is contained in:
comfyanonymous 2023-12-29 17:47:24 -05:00
parent 04b713dda1
commit 144e6580a4
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ def cached_filename_list_(folder_name):
if folder_name not in filename_list_cache:
return None
out = filename_list_cache[folder_name]
if time.perf_counter() < (out[2] + 0.5):
return out
for x in out[1]:
time_modified = out[1][x]
folder = x