feat: update cache after remove instead of clear

This commit is contained in:
Noah Hsu
2022-09-14 20:28:52 +08:00
parent 66b2562d03
commit 7ad3748a46
3 changed files with 31 additions and 6 deletions

View File

@ -271,7 +271,7 @@ func (h *Handler) handleDelete(w http.ResponseWriter, r *http.Request) (status i
if err := fs.Remove(ctx, reqPath); err != nil {
return http.StatusMethodNotAllowed, err
}
fs.ClearCache(path.Dir(reqPath))
//fs.ClearCache(path.Dir(reqPath))
return http.StatusNoContent, nil
}