From 3623b0927eaaa343014a592b4f663f80b9a513b5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 21 Nov 2015 17:21:22 -0500 Subject: remove tags redis and memcache --- modules/setting/setting.go | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'modules/setting/setting.go') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index c2b56b5b..a8a31ddc 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -15,10 +15,12 @@ import ( "strings" "time" - "gopkg.in/ini.v1" - "github.com/Unknwon/com" + _ "github.com/go-macaron/cache/memcache" + _ "github.com/go-macaron/cache/redis" "github.com/go-macaron/session" + _ "github.com/go-macaron/session/redis" + "gopkg.in/ini.v1" "github.com/gogits/gogs/modules/bindata" "github.com/gogits/gogs/modules/log" @@ -140,9 +142,6 @@ var ( CacheInternal int CacheConn string - EnableRedis bool - EnableMemcache bool - // Session settings. SessionConfig session.Options @@ -545,13 +544,6 @@ func newLogService() { func newCacheService() { CacheAdapter = Cfg.Section("cache").Key("ADAPTER").In("memory", []string{"memory", "redis", "memcache"}) - if EnableRedis { - log.Info("Redis Supported") - } - if EnableMemcache { - log.Info("Memcache Supported") - } - switch CacheAdapter { case "memory": CacheInternal = Cfg.Section("cache").Key("INTERVAL").MustInt(60) -- cgit v1.2.3