mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 07:35: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()):
|
if set(stored_dirs.keys()) != set(current_dirs.keys()):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Check if any directory's modification time has changed
|
# Remove the modification time check to make cache validation less strict
|
||||||
for dir_path, stored_time in stored_dirs.items():
|
# This allows the cache to be valid even when files have changed
|
||||||
current_time = current_dirs.get(dir_path)
|
# Users can explicitly refresh the cache when needed
|
||||||
if current_time is None or current_time > stored_time:
|
|
||||||
return False
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user