From a2d3708bc332dd667e6dea5b8a0d32a3e555ee23 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 18 Oct 2025 11:58:00 +0200 Subject: [PATCH] Do not cache decisions if DefaultDecisionSeconds=0 (#280) * xx * Remove outdated comment on decision caching Remove comment about decision caching based on timeout. --------- Co-authored-by: maxlerebourg --- bouncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouncer.go b/bouncer.go index 8b6f611..e28d8f4 100644 --- a/bouncer.go +++ b/bouncer.go @@ -529,7 +529,7 @@ func handleNoStreamCache(bouncer *Bouncer, remoteIP string) (string, error) { default: bouncer.log.Debug("handleStreamCache:unknownType " + decision.Type) } - if isLiveMode { + if isLiveMode && bouncer.defaultDecisionTimeout > 0 { durationSecond := int64(duration.Seconds()) if bouncer.defaultDecisionTimeout < durationSecond { durationSecond = bouncer.defaultDecisionTimeout