From 3e0cd122d83a58d7a97452c09b8c2fa375c3ff09 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Dec 2019 10:08:27 -0800 Subject: [PATCH] mount: directory listing cache ttl set to 5 minutes --- weed/filesys/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index f632fd997..8f1bc72a7 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -227,7 +227,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) { glog.V(3).Infof("dir ReadDirAll %s", dir.Path) - cacheTtl := 10 * time.Minute + cacheTtl := 5 * time.Minute readErr := filer2.ReadDirAllEntries(ctx, dir.wfs, dir.Path, "", func(entry *filer_pb.Entry, isLast bool) { if entry.IsDirectory {