Browse Source

This cache timeout is pretty useless in practice.

pull/2432/head
comfyanonymous 11 months ago
parent
commit
144e6580a4
  1. 3
      folder_paths.py

3
folder_paths.py

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

Loading…
Cancel
Save