Open Todvaa opened 4 months ago
Why do we need to store this config in DB? What is stored in DB? Full config? What will happened when we change the config of FileUploadEngine? Will it updated in db?
It should be described in doc
Well, this bug exists for all config options. For example language is not changed, when I change in config.yaml. In all examples configs are first loaded from config.yaml, then after the call to func (t SiteModel) Init(cfg map[string]string) SiteModel
configs are loaded from database.
I already solve the problem, but I spent time searching.
At the low level of the library, config values are added to the database, but only if such a field does not already exist. Because of this, if you have ever run the config, no changes will occur.
Solution: Clear the goadmin_site table before starting.
Hope it will help to someone.