mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Remove TTL ceiling at 5s in plugin/cache (#1380)
The cache plugin always returned a minimum TTL of 5 seconds, regardless of the actual TTL of the records. A cache is not authoritative for the record TTL and should not extend it.
This commit is contained in:
committed by
Miek Gieben
parent
da230cd1fa
commit
f1b280de53
2
plugin/cache/cache.go
vendored
2
plugin/cache/cache.go
vendored
@@ -168,8 +168,6 @@ const (
|
||||
maxTTL = 1 * time.Hour
|
||||
maxNTTL = 30 * time.Minute
|
||||
|
||||
minTTL = 5 // seconds
|
||||
|
||||
defaultCap = 10000 // default capacity of the cache.
|
||||
|
||||
// Success is the class for caching positive caching.
|
||||
|
||||
Reference in New Issue
Block a user