From c6b3c5bcefde6be4c64f5769a38962c2ce6ad6de Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 16 Dec 2019 04:44:23 +0800 Subject: [PATCH] Fix cache problem on dashboard (#9358) --- routers/user/home.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/user/home.go b/routers/user/home.go index 426f15bfa7e..ae5975a711c 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -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)