perf: Memory optimization
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-11-14 21:39:53 +08:00
parent c44554f4d4
commit b8eb7b11bf
2 changed files with 4 additions and 4 deletions

View File

@ -94,6 +94,7 @@ class WorkFlowPostHandler:
application_public_access_client.access_num = application_public_access_client.access_num + 1
application_public_access_client.intraday_access_num = application_public_access_client.intraday_access_num + 1
application_public_access_client.save()
self.chat_info = None
class NodeResult:

View File

@ -272,10 +272,9 @@ class ChatInfo:
index=chat_record_dict.get('index'), )
def set_cache(self):
if self.debug:
cache.set(Cache_Version.CHAT.get_key(key=self.chat_id), json.dumps(self.to_dict(), cls=SystemEncoder),
version=Cache_Version.CHAT_INFO.get_version(),
timeout=60 * 30)
cache.set(Cache_Version.CHAT.get_key(key=self.chat_id), json.dumps(self.to_dict(), cls=SystemEncoder),
version=Cache_Version.CHAT_INFO.get_version(),
timeout=60 * 30)
@staticmethod
def map_to_chat_info(chat_info_dict):