diff --git a/images.go b/images.go index 0f5b87d..316d3d1 100755 --- a/images.go +++ b/images.go @@ -41,7 +41,7 @@ func handleImageSearch(w http.ResponseWriter, settings UserSettings, query strin "Theme": settings.Theme, "Safe": settings.SafeSearch, "IsThemeDark": settings.IsThemeDark, - "HardCacheEnabled": config.HardCacheEnabled, + "HardCacheEnabled": config.HardCacheDuration == 0, } // Render the template without measuring the time diff --git a/init.go b/init.go index 584b6b8..9a7f62a 100644 --- a/init.go +++ b/init.go @@ -1,7 +1,6 @@ package main import ( - "log" "time" ) @@ -29,7 +28,6 @@ var defaultConfig = Config{ WebsiteEnabled: true, LogLevel: 1, HardCacheDuration: 0, - HardCacheEnabled: false, } const configFilePath = "config.ini" @@ -69,8 +67,6 @@ func main() { generateOpenSearchXML(config) - log.Println("Hard cache:", config.HardCacheEnabled) - go startNodeClient() runServer()