clean pathCache

This commit is contained in:
Nic Waller authored and André Roth committed 2024-02-06 20:49:35 +01:00
1 parent d7cc9b89d1
commit 5c1fd4dd2c
1 file changed
+1
+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))
}
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))