From 5c1fd4dd2caaba00ced8db77fce1506a3df5f388 Mon Sep 17 00:00:00 2001 From: Nic Waller Date: Thu, 28 Sep 2023 10:58:31 -0700 Subject: [PATCH] clean pathCache --- s3/public.go | 1 + 1 file changed, 1 insertion(+) diff --git a/s3/public.go b/s3/public.go index e6c40b0b..8c682a66 100644 --- a/s3/public.go +++ b/s3/public.go @@ -228,6 +228,7 @@ func (storage *PublishedStorage) Remove(path string) error { return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage)) } + delete(storage.pathCache, path) if storage.plusWorkaround && strings.Contains(path, "+") { // try to remove workaround version, but don't care about result _ = storage.Remove(strings.Replace(path, "+", " ", -1))