From c7b205ebe25d5d932a23083f490571423924ec17 Mon Sep 17 00:00:00 2001 From: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> Date: Tue, 1 Jul 2025 20:31:43 +0800 Subject: [PATCH] Revert "fix(fs): update objs cache (#507)" This reverts commit f26892ac3c588871cc7d6d6a495c255a71178fa1. --- internal/op/fs.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/op/fs.go b/internal/op/fs.go index e4238c49..adc08229 100644 --- a/internal/op/fs.go +++ b/internal/op/fs.go @@ -573,12 +573,8 @@ func Put(ctx context.Context, storage driver.Driver, dstDirPath string, file mod } case driver.Put: err = s.Put(ctx, parentDir, file, up) - if err == nil { - if !utils.IsBool(lazyCache...) { - ClearCache(storage, dstDirPath) - } else { - addCacheObj(storage, dstDirPath, model.WrapObjName(file)) - } + if err == nil && !utils.IsBool(lazyCache...) { + ClearCache(storage, dstDirPath) } default: return errs.NotImplement