mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
♻️ refactor(renderer): 将缓存文件名哈希算法切换到 SHA256
This commit is contained in:
parent
57343ced22
commit
8715d0cec1
@ -379,7 +379,7 @@ class RendererService:
|
||||
data_str = json.dumps(data or {}, sort_keys=True)
|
||||
cache_key_str = f"{template_name}:{data_str}"
|
||||
cache_filename = (
|
||||
f"{hashlib.md5(cache_key_str.encode()).hexdigest()}.png"
|
||||
f"{hashlib.sha256(cache_key_str.encode()).hexdigest()}.png"
|
||||
)
|
||||
cache_path = UI_CACHE_PATH / cache_filename
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user