Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cache/filecache/filecache_config.go')
-rw-r--r--cache/filecache/filecache_config.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/cache/filecache/filecache_config.go b/cache/filecache/filecache_config.go
index 60c25fc4d..816c6b8a6 100644
--- a/cache/filecache/filecache_config.go
+++ b/cache/filecache/filecache_config.go
@@ -73,9 +73,8 @@ var defaultCacheConfigs = Configs{
Dir: resourcesGenDir,
},
cacheKeyGetResource: Config{
- MaxAge: -1, // Never expire
- Dir: cacheDirProject,
- retries: 3, // Retries on error getting the remote resource.
+ MaxAge: -1, // Never expire
+ Dir: cacheDirProject,
},
}
@@ -91,10 +90,6 @@ type Config struct {
// Will resources/_gen will get its own composite filesystem that
// also checks any theme.
isResourceDir bool
-
- // Number of retries when errors occurs when creating the element,
- // only used for remote resources.
- retries int
}
// GetJSONCache gets the file cache for getJSON.