From 3dc5fee4b4fe8c3cd45ef1f184dd4187234a110e Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 6 Dec 2022 10:52:13 +0800 Subject: [PATCH] #3169 update --- services/repository/contributor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/contributor.go b/services/repository/contributor.go index 817b4b086..9a86b91dc 100644 --- a/services/repository/contributor.go +++ b/services/repository/contributor.go @@ -31,7 +31,7 @@ func GetRepoTopNContributors(repo *models.Repository, N int) ([]*models.Contribu log.Debug("Get RepoTopNContributors from disk,repo.ID = %d ", repo.ID) jsonVal, err := json.Marshal(&ContributorCacheVal{Contributors: contributorInfos, Total: total}) if err == nil { - redis_client.Setex(redis_key.RepoTopNContributors(repo.ID, N), string(jsonVal), 5*time.Minute) + redis_client.Setex(redis_key.RepoTopNContributors(repo.ID, N), string(jsonVal), 2*time.Minute) } return contributorInfos, total }