docs: clarify should_cache filtering criteria

Change docstring from "Skip large values" to "Skip if download time > compute time"
which better captures the cost/benefit tradeoff for external caching.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Deep Mehta 2026-01-29 19:50:12 +05:30
parent 2049066cff
commit d755f7ca19

View File

@ -122,8 +122,8 @@ class CacheProvider(ABC):
Return False to skip external caching for this node.
Common filters:
- By class_type: Only expensive nodes (KSampler, VAEDecode)
- By size: Skip large values to reduce network overhead
- By class_type: Only cache expensive nodes (KSampler, VAEDecode)
- By cost/benefit: Skip if download time > compute time
Default: Returns True (cache everything).
"""