mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-05 19:12:41 +08:00
Fix not cleaning subcaches
This commit is contained in:
parent
5bad474118
commit
90f57e6a8d
@ -270,6 +270,8 @@ class BasicCache:
|
|||||||
for key in self.subcaches:
|
for key in self.subcaches:
|
||||||
if key not in preserve_subcaches:
|
if key not in preserve_subcaches:
|
||||||
to_remove.append(key)
|
to_remove.append(key)
|
||||||
|
else:
|
||||||
|
self.subcaches[key].clean_unused()
|
||||||
for key in to_remove:
|
for key in to_remove:
|
||||||
del self.subcaches[key]
|
del self.subcaches[key]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user