Explorar o código

修改清空缓存

pengzhibo168 %!s(int64=5) %!d(string=hai) anos
pai
achega
2365b60899
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)