ComfyUI > Nodes > COMFYUI_PROMPTMODELS > 🗑️ PRO Clear Cache

ComfyUI Node: 🗑️ PRO Clear Cache

Class Name

PRO_ClearCacheNode

Category
GetSetNode_Pro/utils
Author
cdanielp (Account age: 0days)
Extension
COMFYUI_PROMPTMODELS
Latest Updated
2026-03-17
Github Stars
0.02K

How to Install COMFYUI_PROMPTMODELS

Install this extension via the ComfyUI Manager by searching for COMFYUI_PROMPTMODELS
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter COMFYUI_PROMPTMODELS in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🗑️ PRO Clear Cache Description

Utility node for clearing cached data in ComfyUI, optimizing memory and ensuring efficiency.

🗑️ PRO Clear Cache:

The PRO_ClearCacheNode is a utility node designed to manage and clear cached data within the ComfyUI environment. Its primary purpose is to provide a mechanism for clearing stored variables or data that are no longer needed, thereby optimizing memory usage and ensuring that the system runs efficiently. This node is particularly useful in scenarios where cached data might become outdated or when you want to reset the cache to start fresh with new data. By offering a straightforward method to clear the cache, it helps maintain the performance and reliability of your workflows. The node operates by confirming whether the cache should be cleared, ensuring that accidental data loss is avoided. This makes it a valuable tool for AI artists who need to manage their computational resources effectively while working on complex projects.

🗑️ PRO Clear Cache Input Parameters:

confirm

The confirm parameter is a boolean input that determines whether the cache clearing operation should proceed. When set to True, the node will clear all cached variables, effectively resetting the cache. If set to False, the operation will be skipped, and the cache will remain unchanged. This parameter is crucial for preventing accidental data loss, as it requires explicit confirmation to perform the cache clearing. The default value for this parameter is False, ensuring that no cache is cleared unless specifically instructed by the user.

🗑️ PRO Clear Cache Output Parameters:

status

The status output parameter provides feedback on the result of the cache clearing operation. It returns a string message indicating whether the cache was successfully cleared or if the operation was skipped. If the cache is cleared, the message will include the number of variables that were removed, providing a clear indication of the action taken. This output is important for users to verify that the node has performed as expected and to understand the impact of the operation on the cached data.

🗑️ PRO Clear Cache Usage Tips:

  • Always double-check the confirm parameter before executing the node to ensure that you do not accidentally clear important cached data.
  • Use this node periodically to clear outdated or unnecessary cached data, which can help improve the performance and responsiveness of your workflows.

🗑️ PRO Clear Cache Common Errors and Solutions:

No output or unexpected status message

  • Explanation: This may occur if the confirm parameter is not set correctly, leading to the cache clearing operation being skipped.
  • Solution: Ensure that the confirm parameter is set to True if you intend to clear the cache. Double-check the parameter settings before executing the node.

Cache not clearing as expected

  • Explanation: If the cache is not clearing, it could be due to an issue with the cache initialization or an internal error.
  • Solution: Verify that the cache is properly initialized and that there are no underlying issues with the cache system. If the problem persists, consider restarting the ComfyUI environment to reset the cache state.

🗑️ PRO Clear Cache Related Nodes

Go back to the extension to check out more related nodes.
COMFYUI_PROMPTMODELS
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

🗑️ PRO Clear Cache