mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 12:16:24 +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:
|
case driver.Put:
|
||||||
err = s.Put(ctx, parentDir, file, up)
|
err = s.Put(ctx, parentDir, file, up)
|
||||||
if err == nil {
|
if err == nil && !utils.IsBool(lazyCache...) {
|
||||||
if !utils.IsBool(lazyCache...) {
|
|
||||||
ClearCache(storage, dstDirPath)
|
ClearCache(storage, dstDirPath)
|
||||||
} else {
|
|
||||||
addCacheObj(storage, dstDirPath, model.WrapObjName(file))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return errs.NotImplement
|
return errs.NotImplement
|
||||||
|
Reference in New Issue
Block a user