mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-02 22:47:01 +00:00
fix(dbfs): folder summary type error in cache (#3332)
* fix(dbfs): folder summary type error in cache * Update dbfs.go
This commit is contained in:
@@ -494,7 +494,7 @@ func (f *DBFS) Get(ctx context.Context, path *fs.URI, opts ...fs.Option) (fs.Fil
|
||||
|
||||
// cache the summary
|
||||
newSummary.CalculatedAt = time.Now()
|
||||
f.cache.Set(fmt.Sprintf("%s%d", folderSummaryCachePrefix, target.ID()), newSummary, f.settingClient.FolderPropsCacheTTL(ctx))
|
||||
f.cache.Set(fmt.Sprintf("%s%d", folderSummaryCachePrefix, target.ID()), *newSummary, f.settingClient.FolderPropsCacheTTL(ctx))
|
||||
target.FileFolderSummary = newSummary
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user