diff options
author | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-08-11 14:59:11 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-11 05:59:11 -0700 |
commit | 6a81632e36a1ba36d315059cfb69c063cab237f1 (patch) | |
tree | 58e85cf7e9aef07bd879eecb45ed2a6a7f4ceda8 /modules/setting | |
parent | b756806ee99f28c4fa6ff824037f92800af4bf72 (diff) | |
download | gitea-6a81632e36a1ba36d315059cfb69c063cab237f1.tar.gz gitea-6a81632e36a1ba36d315059cfb69c063cab237f1.zip |
Fix typo CacheInternal -> CacheInterval (#3432)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 2157fa10aa..a51cbf53be 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: |