Browse Source

Fix cache problem on dashboard (#9358)

tags/v1.11.0-rc1
Lunny Xiao techknowlogick 5 years ago
parent
commit
f7c4def788
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/user/home.go

+ 2
- 0
routers/user/home.go View File

@@ -78,7 +78,9 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
if act.ActUser != nil { if act.ActUser != nil {
userCache[act.ActUserID] = act.ActUser userCache[act.ActUserID] = act.ActUser
} }
}


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


Loading…
Cancel
Save