From 6f1e58d3875a46090e2f2d8a2ea02a8ac7752b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 1 Jul 2017 12:54:30 -0700 Subject: [PATCH] Don't flush cache on failed instances Cache handling is done in the upstream handling code, this isn't needed anymore --- views.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/views.go b/views.go index f62bb9385..e4b487472 100644 --- a/views.go +++ b/views.go @@ -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