Remove the retries on error in remote resources.Get

Fixes #9271
See  #9259
This commit is contained in:
Bjørn Erik Pedersen
2021-12-10 09:55:41 +01:00
parent e4d6ec94b5
commit 3bc6830411
4 changed files with 8 additions and 31 deletions

View File

@@ -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.