diff --git a/cache/file.go b/cache/file.go index 777b2330..a4e59c06 100644 --- a/cache/file.go +++ b/cache/file.go @@ -50,7 +50,7 @@ type FileCache struct { // Create new file cache with default directory and suffix. // the level and expiry need set in method StartAndGC as config string. func NewFileCache() *FileCache { - return &FileCache{} + return &FileCache{CachePath:FileCachePath, FileSuffix:FileCacheFileSuffix} } // Start and begin gc for file cache.