Commit 2eb942a9 authored by BaiJiangJie's avatar BaiJiangJie

[Update] 修改Permission响应层缓存key

parent 28ec1eb0
...@@ -73,7 +73,6 @@ class UserPermissionCacheMixin: ...@@ -73,7 +73,6 @@ class UserPermissionCacheMixin:
request_md5 = self.get_request_md5() request_md5 = self.get_request_md5()
meta_cache_id = self.get_meta_cache_id() meta_cache_id = self.get_meta_cache_id()
resp_cache_id = '{}_{}_{}'.format(obj_id, request_md5, meta_cache_id) resp_cache_id = '{}_{}_{}'.format(obj_id, request_md5, meta_cache_id)
resp_cache_id = md5(resp_cache_id.encode()).hexdigest()
return resp_cache_id return resp_cache_id
def get_response_from_cache(self): def get_response_from_cache(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment