Skip to content

Commit

Permalink
Increased cache length
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Dec 12, 2016
1 parent 03f3f48 commit fcdb925
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func getCurrentPositionOfUser(group string, user string) UserPositionJSON {
}
if RuntimeArgs.RandomForests {
userJSON.Rf = rfClassify(group, userFingerprint)
log.Println("%+v", userJSON.Rf)
}
go setUserPositionCache(group+user, userJSON)
return userJSON
Expand Down
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func clearCache() {
go resetCache("isLearning")
go resetCache("psCache")
go resetCache("userPositionCache")
time.Sleep(time.Second * 60)
time.Sleep(time.Second * 600)
}
}

Expand Down
5 changes: 5 additions & 0 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ func slashLogout(c *gin.Context) {

// slashDashboard displays the dashboard
func slashDashboard(c *gin.Context) {
// skipUsers := c.DefaultQuery("skip", "")
// skipAllUsers := false
// if len(skipUsers) > 0 {
// skipAllUsers = true
// }
filterUser := c.DefaultQuery("user", "")
filterUsers := c.DefaultQuery("users", "")
filterUserMap := make(map[string]bool)
Expand Down

0 comments on commit fcdb925

Please sign in to comment.