summaryrefslogtreecommitdiffstats
path: root/modules/repository/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/cache.go')
-rw-r--r--modules/repository/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/cache.go b/modules/repository/cache.go
index 0852771a55..5d6dea8fcb 100644
--- a/modules/repository/cache.go
+++ b/modules/repository/cache.go
@@ -41,7 +41,7 @@ func CacheRef(repo *models.Repository, gitRepo *git.Repository, fullRefName stri
return nil
}
- commitCache := git.NewLastCommitCache(repo.FullName(), gitRepo, int64(setting.CacheService.LastCommit.TTL.Seconds()), cache.GetCache())
+ commitCache := git.NewLastCommitCache(repo.FullName(), gitRepo, setting.LastCommitCacheTTLSeconds, cache.GetCache())
return commitCache.CacheCommit(commit)
}