From 6c8581445e195960ef51e8a432f6a70087731324 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Wed, 9 Aug 2023 08:32:50 -0400 Subject: [PATCH] fix keepttl parsing (#6250) Signed-off-by: Chris O'Haver --- plugin/cache/setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/cache/setup.go b/plugin/cache/setup.go index 7e5dfa174..f8278b872 100644 --- a/plugin/cache/setup.go +++ b/plugin/cache/setup.go @@ -241,6 +241,7 @@ func cacheParse(c *caddy.Controller) (*Cache, error) { return nil, fmt.Errorf("cache type for disable must be %q or %q", Success, Denial) } case "keepttl": + args := c.RemainingArgs() if len(args) != 0 { return nil, c.ArgErr() }