mirror of
https://github.com/casdoor/casdoor.git
synced 2026-03-13 09:30:11 +08:00
feat: only init site map when proxy server is started (#5265)
This commit is contained in:
6
main.go
6
main.go
@@ -75,8 +75,10 @@ func main() {
|
||||
object.InitCleanupTokens()
|
||||
|
||||
object.InitSiteMap()
|
||||
object.InitRuleMap()
|
||||
object.StartMonitorSitesLoop()
|
||||
if len(object.SiteMap) != 0 {
|
||||
object.InitRuleMap()
|
||||
object.StartMonitorSitesLoop()
|
||||
}
|
||||
|
||||
util.SafeGoroutine(func() { object.RunSyncUsersJob() })
|
||||
util.SafeGoroutine(func() { controllers.InitCLIDownloader() })
|
||||
|
||||
Reference in New Issue
Block a user