fix TTLCache

This commit is contained in:
jxxghp
2025-08-21 13:17:59 +08:00
parent bfeb8d238a
commit 03c757bba6
3 changed files with 23 additions and 10 deletions

View File

@@ -307,7 +307,7 @@ class TemplateHelper(metaclass=SingletonClass):
def __init__(self):
self.builder = TemplateContextBuilder()
self.cache = TTLCache(maxsize=100, ttl=600)
self.cache = TTLCache(region="notification", maxsize=100, ttl=600)
@staticmethod
def _generate_cache_key(cuntent: Union[str, dict]) -> str: