(frequency int)
| 157 | } |
| 158 | |
| 159 | func SyncOptions(frequency int) { |
| 160 | for { |
| 161 | time.Sleep(time.Duration(frequency) * time.Second) |
| 162 | common.SysLog("syncing options from database") |
| 163 | loadOptionsFromDatabase() |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | func UpdateOption(key string, value string) error { |
| 168 | // Save to database first |
no test coverage detected