[refactor] teacache refactor (#395)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
Jiangyun Zhu authored and GitHub committed 2025-12-22 06:49:04 +08:00
1 parent 01f28217b1
commit a7fe4fba4e
9 files changed
+94 -107

No files matched your search

-4
View File
@@ -75,10 +75,6 @@ class TeaCacheBackend(CacheBackend):
# Apply hook to transformer
apply_teacache_hook(transformer, teacache_config)
# Store backend reference on pipeline for pipeline's internal use
# (e.g., checking if cache is enabled for cache_branch parameter)
pipeline._cache_backend = self
# Mark as enabled
self.enabled = True