diff options
Diffstat (limited to 'modules/cache/cache.go')
-rw-r--r-- | modules/cache/cache.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/cache/cache.go b/modules/cache/cache.go index e7630638bf..0198f8da73 100644 --- a/modules/cache/cache.go +++ b/modules/cache/cache.go @@ -16,9 +16,7 @@ import ( _ "gitea.com/go-chi/cache/memcache" // memcache plugin for cache ) -var ( - conn mc.Cache -) +var conn mc.Cache func newCache(cacheConfig setting.Cache) (mc.Cache, error) { return mc.NewCacher(mc.Options{ |