Don't flush cache on failed instances

Cache handling is done in the upstream handling code, this isn't needed anymore
This commit is contained in:
Łukasz Mierzwa
2017-07-01 12:54:30 -07:00
parent 4330972277
commit 6f1e58d387

View File

@@ -85,10 +85,6 @@ func alerts(c *gin.Context) {
resp.Version = version
resp.Upstreams = getUpstreams()
if resp.Upstreams.Counters.Failed > 0 {
apiCache.Flush()
}
// use full URI (including query args) as cache key
cacheKey := c.Request.RequestURI