aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cache/cache.go')
-rw-r--r--plugin/cache/cache.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugin/cache/cache.go b/plugin/cache/cache.go
index 972c2b5e1..4e64fa733 100644
--- a/plugin/cache/cache.go
+++ b/plugin/cache/cache.go
@@ -130,7 +130,6 @@ func (w *ResponseWriter) WriteMsg(res *dns.Msg) error {
}
if key != -1 && duration > 0 {
-
if w.state.Match(res) {
w.set(res, key, mt, duration)
cacheSize.WithLabelValues(w.server, Success).Set(float64(w.pcache.Len()))