mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-30 21:45:41 +08:00
parent
96eb99ea55
commit
476ca67cd4
|
@ -1706,6 +1706,7 @@ config.cache_config = Cache Configuration
|
||||||
config.cache_adapter = Cache Adapter
|
config.cache_adapter = Cache Adapter
|
||||||
config.cache_interval = Cache Interval
|
config.cache_interval = Cache Interval
|
||||||
config.cache_conn = Cache Connection
|
config.cache_conn = Cache Connection
|
||||||
|
config.cache_item_ttl = Cache Item TTL
|
||||||
|
|
||||||
config.session_config = Session Configuration
|
config.session_config = Session Configuration
|
||||||
config.session_provider = Session Provider
|
config.session_provider = Session Provider
|
||||||
|
|
|
@ -232,6 +232,7 @@ func Config(ctx *context.Context) {
|
||||||
ctx.Data["CacheAdapter"] = setting.CacheService.Adapter
|
ctx.Data["CacheAdapter"] = setting.CacheService.Adapter
|
||||||
ctx.Data["CacheInterval"] = setting.CacheService.Interval
|
ctx.Data["CacheInterval"] = setting.CacheService.Interval
|
||||||
ctx.Data["CacheConn"] = setting.CacheService.Conn
|
ctx.Data["CacheConn"] = setting.CacheService.Conn
|
||||||
|
ctx.Data["CacheItemTTL"] = setting.CacheService.TTL
|
||||||
|
|
||||||
ctx.Data["SessionConfig"] = setting.SessionConfig
|
ctx.Data["SessionConfig"] = setting.SessionConfig
|
||||||
|
|
||||||
|
|
|
@ -222,11 +222,15 @@
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
|
||||||
<dd>{{.CacheAdapter}}</dd>
|
<dd>{{.CacheAdapter}}</dd>
|
||||||
|
{{if eq .CacheAdapter "memory"}}
|
||||||
<dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
|
||||||
<dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
|
<dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
|
||||||
|
{{end}}
|
||||||
{{if .CacheConn}}
|
{{if .CacheConn}}
|
||||||
<dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
|
||||||
<dd><code>{{.CacheConn}}</code></dd>
|
<dd><code>{{.CacheConn}}</code></dd>
|
||||||
|
<dt>{{.i18n.Tr "admin.config.cache_item_ttl"}}</dt>
|
||||||
|
<dd><code>{{.CacheItemTTL}}</code></dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user