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. |
||
|---|---|---|
| .. | ||
| assets | ||
| database | ||
| __init__.py | ||
| app_settings.py | ||
| custom_node_manager.py | ||
| frontend_management.py | ||
| logger.py | ||
| model_manager.py | ||
| node_replace_manager.py | ||
| subgraph_manager.py | ||
| user_manager.py | ||