From 3a3c9e1848059e8e1e24a12fb428c0f8fa648160 Mon Sep 17 00:00:00 2001 From: Haoming Date: Tue, 5 May 2026 17:43:38 +0800 Subject: [PATCH] cache --- modules/processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/processing.py b/modules/processing.py index e6c49294..ad1a36fb 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -787,6 +787,7 @@ def manage_model_and_prompt_cache(p: StableDiffusionProcessing): if need_global_unload and not just_reloaded: memory_management.unload_all_models() + p.clear_prompt_cache() need_global_unload = False