From 90f57e6a8dba9decb27d389e6bc60057146bb1c8 Mon Sep 17 00:00:00 2001 From: Deluxe233 Date: Sat, 31 Jan 2026 07:06:41 -0500 Subject: [PATCH] Fix not cleaning subcaches --- comfy_execution/caching.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy_execution/caching.py b/comfy_execution/caching.py index cfd40a928..06e489ac3 100644 --- a/comfy_execution/caching.py +++ b/comfy_execution/caching.py @@ -270,6 +270,8 @@ class BasicCache: for key in self.subcaches: if key not in preserve_subcaches: to_remove.append(key) + else: + self.subcaches[key].clean_unused() for key in to_remove: del self.subcaches[key]