chore: do not hardcode cache time (close #302)

This commit is contained in:
JustSong
2023-07-23 19:26:37 +08:00
parent 4ab3211c0e
commit 4eea096654
3 changed files with 13 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ func main() {
if err != nil {
common.FatalLog("failed to parse SYNC_FREQUENCY: " + err.Error())
}
common.SyncFrequency = frequency
go model.SyncOptions(frequency)
if common.RedisEnabled {
go model.SyncChannelCache(frequency)