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 @@ -1706,6 +1706,7 @@ config.cache_config = Cache Configuration
17061706config.cache_adapter = Cache Adapter
17071707config.cache_interval = Cache Interval
17081708config.cache_conn = Cache Connection
1709+ config.cache_item_ttl = Cache Item TTL
17091710
17101711config.session_config = Session Configuration
17111712config.session_provider = Session Provider
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ func Config(ctx *context.Context) {
232232 ctx .Data ["CacheAdapter" ] = setting .CacheService .Adapter
233233 ctx .Data ["CacheInterval" ] = setting .CacheService .Interval
234234 ctx .Data ["CacheConn" ] = setting .CacheService .Conn
235+ ctx .Data ["CacheItemTTL" ] = setting .CacheService .TTL
235236
236237 ctx .Data ["SessionConfig" ] = setting .SessionConfig
237238
Original file line number Diff line number Diff line change 222222 <dl class="dl-horizontal admin-dl-horizontal">
223223 <dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
224224 <dd>{{.CacheAdapter}}</dd>
225+ {{if eq .CacheAdapter "memory"}}
225226 <dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
226227 <dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
228+ {{end}}
227229 {{if .CacheConn}}
228230 <dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
229231 <dd><code>{{.CacheConn}}</code></dd>
232+ <dt>{{.i18n.Tr "admin.config.cache_item_ttl"}}</dt>
233+ <dd><code>{{.CacheItemTTL}}</code></dd>
230234 {{end}}
231235 </dl>
232236 </div>
You can’t perform that action at this time.
0 commit comments