File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1757,6 +1757,7 @@ config.cache_config = Cache Configuration
17571757config.cache_adapter = Cache Adapter
17581758config.cache_interval = Cache Interval
17591759config.cache_conn = Cache Connection
1760+ config.cache_item_ttl = Cache Item TTL
17601761
17611762config.session_config = Session Configuration
17621763config.session_provider = Session Provider
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ func Config(ctx *context.Context) {
234234 ctx .Data ["CacheAdapter" ] = setting .CacheService .Adapter
235235 ctx .Data ["CacheInterval" ] = setting .CacheService .Interval
236236 ctx .Data ["CacheConn" ] = setting .CacheService .Conn
237+ ctx .Data ["CacheItemTTL" ] = setting .CacheService .TTL
237238
238239 ctx .Data ["SessionConfig" ] = setting .SessionConfig
239240
Original file line number Diff line number Diff line change 233233 <dl class="dl-horizontal admin-dl-horizontal">
234234 <dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
235235 <dd>{{.CacheAdapter}}</dd>
236+ {{if eq .CacheAdapter "memory"}}
236237 <dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
237238 <dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
239+ {{end}}
238240 {{if .CacheConn}}
239241 <dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
240242 <dd><code>{{.CacheConn}}</code></dd>
243+ <dt>{{.i18n.Tr "admin.config.cache_item_ttl"}}</dt>
244+ <dd><code>{{.CacheItemTTL}}</code></dd>
241245 {{end}}
242246 </dl>
243247 </div>
You can’t perform that action at this time.
0 commit comments