cron should clear all servers cache
This commit is contained in:
parent
5ab238139b
commit
efc51d5060
|
@ -209,7 +209,7 @@ func (h *handler) getServers() ([]*models.Server, map[string]string, error) {
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
go h.allServersCache.Set(servers)
|
||||
go h.allServersCache.Clear()
|
||||
log.Print("Servers loaded!")
|
||||
|
||||
return servers, urls, nil
|
||||
|
|
Reference in New Issue