clean pathCache

This commit is contained in:
Nic Waller
2023-09-28 10:58:31 -07:00
committed by André Roth
parent d7cc9b89d1
commit 5c1fd4dd2c
+1
View File
@@ -228,6 +228,7 @@ func (storage *PublishedStorage) Remove(path string) error {
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage)) return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
} }
delete(storage.pathCache, path)
if storage.plusWorkaround && strings.Contains(path, "+") { if storage.plusWorkaround && strings.Contains(path, "+") {
// try to remove workaround version, but don't care about result // try to remove workaround version, but don't care about result
_ = storage.Remove(strings.Replace(path, "+", " ", -1)) _ = storage.Remove(strings.Replace(path, "+", " ", -1))