From eca05b09aa269dda1309ee77ac750e29e71c3fd3 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Thu, 26 Oct 2017 04:37:33 +0300 Subject: Add commit count caching (#2774) * Add commit count caching * Small refactoring * Add different key prefix for refs and commits * Add configuratuion option to allow to change caching time or disable it --- routers/admin/admin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers/admin/admin.go') diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 94b88a05c3..39a8f718ca 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -224,9 +224,9 @@ func Config(ctx *context.Context) { ctx.Data["Mailer"] = setting.MailService } - ctx.Data["CacheAdapter"] = setting.CacheAdapter - ctx.Data["CacheInterval"] = setting.CacheInterval - ctx.Data["CacheConn"] = setting.CacheConn + ctx.Data["CacheAdapter"] = setting.CacheService.Adapter + ctx.Data["CacheInterval"] = setting.CacheService.Interval + ctx.Data["CacheConn"] = setting.CacheService.Conn ctx.Data["SessionConfig"] = setting.SessionConfig -- cgit v1.2.3