|
|
@@ -52,6 +52,9 @@ func main() {
|
|
|
if err != nil {
|
|
|
common.FatalLog("failed to initialize database: " + err.Error())
|
|
|
}
|
|
|
+
|
|
|
+ model.CheckSetup()
|
|
|
+
|
|
|
// Initialize SQL Database
|
|
|
err = model.InitLogDB()
|
|
|
if err != nil {
|
|
|
@@ -76,7 +79,7 @@ func main() {
|
|
|
model.InitOptionMap()
|
|
|
// Initialize model settings
|
|
|
operation_setting.InitModelSettings()
|
|
|
-
|
|
|
+
|
|
|
if common.RedisEnabled {
|
|
|
// for compatibility with old versions
|
|
|
common.MemoryCacheEnabled = true
|