fix: uapi cache key mismatch and write without cache gate

This commit is contained in:
yumoqing 2026-05-30 10:55:31 +08:00
parent 77b4b14525
commit d67cc0b0da

View File

@ -118,7 +118,8 @@ where b.orgid = c.ownerid
e = Exception(f'{appid=} {orgid=} get none user') e = Exception(f'{appid=} {orgid=} get none user')
exception(f'{e}') exception(f'{e}')
raise e raise e
self.apidata[key] = d if _cache_enabled():
self.org_users[key] = d
return d return d
e = Exception(f'{appid=} {orgid=} get none user') e = Exception(f'{appid=} {orgid=} get none user')
exception(f'{e}') exception(f'{e}')
@ -147,6 +148,7 @@ where b.orgid = c.ownerid
e = Exception(f'{appid=}, {apiname=} get none api') e = Exception(f'{appid=}, {apiname=} get none api')
exception(f'{e}') exception(f'{e}')
raise e raise e
if _cache_enabled():
self.apidata[key] = d self.apidata[key] = d
return d return d
e = Exception(f'{appid=}, {apiname=} get none api') e = Exception(f'{appid=}, {apiname=} get none api')