Browse Source

fix:刷新之后清除数据缓存

Roc 3 years ago
parent
commit
04d4e8ca1a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      controllers/chart.go

+ 6 - 0
controllers/chart.go

@@ -343,6 +343,12 @@ func (this *ChartController) ChartInfoRefresh() {
 		br.ErrMsg = "刷新图表关联指标信息失败,Err:" + err.Error()
 		return
 	}
+
+	//清除数据缓存
+	key := utils.HZ_CHART_LIB_DETAIL + uniqueCode
+	if utils.Re == nil {
+		utils.Rc.Delete(key)
+	}
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "刷新成功"