mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
chore: clear parent folder cache after upload
This commit is contained in:
parent
3f49271db6
commit
935416de45
@ -214,5 +214,11 @@ func Put(ctx context.Context, account driver.Driver, dstDirPath string, file mod
|
||||
if up == nil {
|
||||
up = func(p int) {}
|
||||
}
|
||||
return account.Put(ctx, parentDir, file, up)
|
||||
err = account.Put(ctx, parentDir, file, up)
|
||||
if err == nil {
|
||||
// clear cache
|
||||
key := stdpath.Join(account.GetAccount().VirtualPath, dstDirPath)
|
||||
filesCache.Del(key)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user