Update plugin_cache.go (#1900)

This commit is contained in:
livingentity 2021-09-25 19:04:17 +02:00 committed by GitHub
parent 69019b7a80
commit 2a3e59c4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
synth.Question = msg.Question
if time.Now().After(cached.expiration) {
updateTTL(synth, time.Now().Add(30 * time.Second))
pluginsState.sessionData["stale"] = synth
return nil
}