From 6a81632e36a1ba36d315059cfb69c063cab237f1 Mon Sep 17 00:00:00 2001 From: Thibault Meyer <0xbaadf00d@users.noreply.github.com> Date: Thu, 11 Aug 2016 14:59:11 +0200 Subject: Fix typo CacheInternal -> CacheInterval (#3432) --- modules/setting/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 2157fa10..a51cbf53 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -164,7 +164,7 @@ var ( // Cache settings CacheAdapter string - CacheInternal int + CacheInterval int CacheConn string // Session settings @@ -645,7 +645,7 @@ func newCacheService() { CacheAdapter = Cfg.Section("cache").Key("ADAPTER").In("memory", []string{"memory", "redis", "memcache"}) switch CacheAdapter { case "memory": - CacheInternal = Cfg.Section("cache").Key("INTERVAL").MustInt(60) + CacheInterval = Cfg.Section("cache").Key("INTERVAL").MustInt(60) case "redis", "memcache": CacheConn = strings.Trim(Cfg.Section("cache").Key("HOST").String(), "\" ") default: -- cgit v1.2.3