diff --git a/README.md b/README.md index 2ef0cd6..ce7ad56 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,9 @@ cache: The clean interval of 24 hours is the default, while the cache time doesn't have a default. This means that cleaning of the cache isn't enabled by default. -If you do want cloud storage to be cleaned you can for example in the case of s3 ad a lifecycle policy to +[!NOTE] For this to work the access times needs to be recorded in the file system used for caching. Typically it is. + +If you do want cloud storage to be cleaned you can for example in the case of s3 add a lifecycle policy to the bucket. ### Supported Artifacts diff --git a/internal/main.go b/internal/main.go index db5db13..b7309d8 100644 --- a/internal/main.go +++ b/internal/main.go @@ -40,9 +40,6 @@ func main() { logrus.Fatalf("failed to initialise controller: %s", err.Error()) } - logrus.Infof("serving http") - InitHTTP(config.HTTP, controller) - if config.Cache.CacheTime != 0 { ticker := time.NewTicker(config.Cache.CleanInterval) go func(ticker *time.Ticker) { @@ -55,4 +52,7 @@ func main() { } }(ticker) } + + logrus.Infof("serving http") + InitHTTP(config.HTTP, controller) }