H3 Cache Fingerprint (internal):
The H3CacheBust node is an internal cache-invalidation mechanism designed to ensure that the outputs of a node processing pipeline remain fresh and accurate. It is strategically placed between the CLIP loader and the H3 conditioning node to address a specific limitation in ComfyUI's execution cache system. The cache system typically fingerprints nodes based on their input values and the fingerprints of connected nodes. However, when dealing with V3 autogrow inputs like reference images or audios, which are passed as dictionaries of links, the cache does not traverse these nested links. This can lead to scenarios where changes in reference media do not update the cache signature, resulting in stale outputs being served to downstream nodes. The H3CacheBust node solves this by generating a digest of all inputs that should trigger cache invalidation, including the prompt, media file names, and the actual content of these files on disk. This ensures that any change, even if a file is replaced under the same name, will invalidate the cache and refresh the output, maintaining the integrity and accuracy of the generated results.
H3 Cache Fingerprint (internal) Input Parameters:
clip
The clip parameter represents the CLIP input that the node processes. It is a required input and serves as the primary data that the node will pass through. This parameter is crucial as it forms the basis of the node's operation, ensuring that the CLIP data is correctly processed and any necessary cache invalidation is applied. There are no specific minimum, maximum, or default values for this parameter, as it is expected to be a valid CLIP object.
fingerprint
The fingerprint parameter is a string input that allows for multiline text. It is used to provide a unique identifier or signature for the node's operation, which helps in determining when the cache should be invalidated. By default, this parameter is an empty string, but it can be customized to include specific identifiers that reflect changes in the input data or processing conditions. This parameter plays a critical role in ensuring that the cache accurately reflects the current state of the inputs, preventing stale data from being used in subsequent processing steps.
H3 Cache Fingerprint (internal) Output Parameters:
clip
The clip output parameter is the processed CLIP data that the node returns. It is essentially the same as the input clip parameter, but with the assurance that any necessary cache invalidation has been applied. This output is crucial for maintaining the accuracy and freshness of the data as it moves through the processing pipeline, ensuring that downstream nodes receive the most up-to-date information.
H3 Cache Fingerprint (internal) Usage Tips:
- Ensure that the
fingerprintparameter is updated whenever there are changes to the input data or processing conditions to effectively utilize the cache invalidation feature. - Use the
H3CacheBustnode in scenarios where reference media files are frequently updated or replaced to prevent stale outputs from affecting the quality of the results.
H3 Cache Fingerprint (internal) Common Errors and Solutions:
Cache signature unchanged
- Explanation: This error occurs when the cache signature does not update despite changes in the input data, leading to stale outputs.
- Solution: Ensure that the
fingerprintparameter accurately reflects all changes in the input data, including file names and content, to trigger proper cache invalidation.
Invalid CLIP input
- Explanation: This error arises when the
clipparameter is not a valid CLIP object, preventing the node from processing the data correctly. - Solution: Verify that the
clipinput is a valid and correctly formatted CLIP object before passing it to the node.
