Skip to content

Commit

Permalink
Fix cache problem on dashboard (#9358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and techknowlogick committed Dec 15, 2019
1 parent 7217b70 commit c6b3c5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
if act.ActUser != nil {
userCache[act.ActUserID] = act.ActUser
}
}

for _, act := range actions {
repoOwner, ok := userCache[act.Repo.OwnerID]
if !ok {
repoOwner, err = models.GetUserByID(act.Repo.OwnerID)
Expand Down

0 comments on commit c6b3c5b

Please sign in to comment.