1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Fix typo CacheInternal -> CacheInterval (#3432)

This commit is contained in:
Thibault Meyer
2016-08-11 14:59:11 +02:00
committed by 无闻
parent b756806ee9
commit 6a81632e36
4 changed files with 5 additions and 5 deletions

View File

@@ -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: