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,
|
"Theme": settings.Theme,
|
||||||
"Safe": settings.SafeSearch,
|
"Safe": settings.SafeSearch,
|
||||||
"IsThemeDark": settings.IsThemeDark,
|
"IsThemeDark": settings.IsThemeDark,
|
||||||
"HardCacheEnabled": config.HardCacheEnabled,
|
"HardCacheEnabled": config.HardCacheDuration == 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render the template without measuring the time
|
// Render the template without measuring the time
|
||||||
|
|
4
init.go
4
init.go
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -29,7 +28,6 @@ var defaultConfig = Config{
|
||||||
WebsiteEnabled: true,
|
WebsiteEnabled: true,
|
||||||
LogLevel: 1,
|
LogLevel: 1,
|
||||||
HardCacheDuration: 0,
|
HardCacheDuration: 0,
|
||||||
HardCacheEnabled: false,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const configFilePath = "config.ini"
|
const configFilePath = "config.ini"
|
||||||
|
@ -69,8 +67,6 @@ func main() {
|
||||||
|
|
||||||
generateOpenSearchXML(config)
|
generateOpenSearchXML(config)
|
||||||
|
|
||||||
log.Println("Hard cache:", config.HardCacheEnabled)
|
|
||||||
|
|
||||||
go startNodeClient()
|
go startNodeClient()
|
||||||
|
|
||||||
runServer()
|
runServer()
|
||||||
|
|
Loading…
Add table
Reference in a new issue