Browse Source

修改清空缓存

pengzhibo168 5 năm trước cách đây
mục cha
commit
2365b60899
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Controller/AppSetController.py

+ 2 - 0
Controller/AppSetController.py

@@ -127,6 +127,8 @@ class AppSetView(View):
         content = request_dict.get('content', None)
         nowTime = int(time.time())
         sm_qs = AppSetModel.objects.filter(appBundleId=appBundleId)
+        redis = RedisObject()
+        redis.del_data(key=appBundleId)
         if sm_qs.exists():
             sm_qs.update(content=content, updTime=nowTime)
             return response.json(0)