mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-18 20:38:15 +08:00
cache_model_file_list_ compared os.path.getmtime(folder) (a float) against model_file_list_cache[1] (the dirs dict), which is always unequal, so the check returned None on every call and the model tree was re-walked on each /experiment/models request. The top-level folder was also never recorded in dirs, so drop the broken scalar comparison and instead seed the folder's own mtime into dirs (matching folder_paths.recursive_search) so it is validated by the existing per-directory loop and direct additions still invalidate the cache. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| custom_node_manager_test.py | ||
| frontend_manager_test.py | ||
| model_file_cache_test.py | ||
| model_manager_test.py | ||
| node_replace_manager_test.py | ||
| test_migrations.py | ||
| user_manager_system_user_test.py | ||