Browse Source

reset cache for each new release

pull/1388/head
Chris Lu 5 years ago
parent
commit
e3e00d36c5
  1. 2
      weed/filesys/wfs.go

2
weed/filesys/wfs.go

@ -84,7 +84,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}, },
}, },
} }
cacheUniqueId := util.Md5([]byte(option.FilerGrpcAddress))[0:4]
cacheUniqueId := util.Md5([]byte(option.FilerGrpcAddress + option.FilerMountRootPath + util.Version()))[0:4]
cacheDir := path.Join(option.CacheDir, cacheUniqueId) cacheDir := path.Join(option.CacheDir, cacheUniqueId)
if option.CacheSizeMB > 0 { if option.CacheSizeMB > 0 {
os.MkdirAll(cacheDir, 0755) os.MkdirAll(cacheDir, 0755)

Loading…
Cancel
Save