mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
Relax cache validation by removing strict modification time checks, allowing users to refresh the cache as needed.
This commit is contained in:
@@ -147,11 +147,9 @@ class ModelScanner:
|
||||
if set(stored_dirs.keys()) != set(current_dirs.keys()):
|
||||
return False
|
||||
|
||||
# Check if any directory's modification time has changed
|
||||
for dir_path, stored_time in stored_dirs.items():
|
||||
current_time = current_dirs.get(dir_path)
|
||||
if current_time is None or current_time > stored_time:
|
||||
return False
|
||||
# Remove the modification time check to make cache validation less strict
|
||||
# This allows the cache to be valid even when files have changed
|
||||
# Users can explicitly refresh the cache when needed
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user