clean up
This commit is contained in:
parent
8fe6783ecb
commit
4bd95062a7
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
4
init.go
4
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()
|
||||
|
|
Loading…
Add table
Reference in a new issue