Commit d5978514 authored by xianyang's avatar xianyang

优化缓存时间

parent 74e6c9ba
......@@ -185,7 +185,7 @@ class CalculationMonthlyBill(object):
v['error_money'] = float('%.3f' % (v['expenditure'] - v['income']))
res_all_data.append(v)
# 存入redis
red.set('business_type_sum-' + str(self.date), str(res_all_data), 3600)
red.set('business_type_sum-' + str(self.date), str(res_all_data), 1800)
else:
if assert_list:
res_all_data = self.search_red_data(business_type_sum_data)
......
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