mirror of
https://github.com/coredns/coredns.git
synced 2026-05-09 19:53:28 -04:00
feat(cache): add optional verify timeout to serve_stale (#8070)
This commit is contained in:
5
plugin/cache/cache.go
vendored
5
plugin/cache/cache.go
vendored
@@ -42,8 +42,9 @@ type Cache struct {
|
||||
percentage int
|
||||
|
||||
// Stale serve
|
||||
staleUpTo time.Duration
|
||||
verifyStale bool
|
||||
staleUpTo time.Duration
|
||||
verifyStale bool
|
||||
verifyStaleTimeout time.Duration // 0 means wait for upstream until its own timeout (current default).
|
||||
|
||||
// Positive/negative zone exceptions
|
||||
pexcept []string
|
||||
|
||||
Reference in New Issue
Block a user