mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00
Revert "fix(fs): update objs cache" (close #511)
Revert "fix(fs): update objs cache (#507)"
This reverts commit f26892ac3c
.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user