This commit is contained in:
partisan 2024-10-17 10:13:30 +02:00
parent 8fe6783ecb
commit 4bd95062a7
2 changed files with 1 additions and 5 deletions

View file

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

View file

@ -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()