From 07d53bf5856586e391da1020e0a59f72dcb52ced Mon Sep 17 00:00:00 2001 From: darkweak Date: Fri, 25 Oct 2024 22:34:46 +0200 Subject: [PATCH] fix(api): delete by regexp --- pkg/api/souin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/api/souin.go b/pkg/api/souin.go index d262488db..0c94aa479 100644 --- a/pkg/api/souin.go +++ b/pkg/api/souin.go @@ -306,7 +306,9 @@ func (s *SouinAPI) HandleRequest(w http.ResponseWriter, r *http.Request) { s.purgeMapping() } else { submatch := keysRg.FindAllStringSubmatch(r.RequestURI, -1)[0][1] - s.BulkDelete(submatch, true) + for _, current := range s.storers { + current.DeleteMany(submatch) + } } } else { ck, _ := s.surrogateStorage.Purge(r.Header)