From 01ebd52a1fa2a5a71ff6609f04c3338e7e4795d4 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 6 May 2019 22:35:11 +0800 Subject: fix config ui error about cache ttl (#6861) --- templates/admin/config.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 23a68caa8e..b4fcb4d610 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -233,11 +233,15 @@
{{.i18n.Tr "admin.config.cache_adapter"}}
{{.CacheAdapter}}
+ {{if eq .CacheAdapter "memory"}}
{{.i18n.Tr "admin.config.cache_interval"}}
{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}
+ {{end}} {{if .CacheConn}}
{{.i18n.Tr "admin.config.cache_conn"}}
{{.CacheConn}}
+
{{.i18n.Tr "admin.config.cache_item_ttl"}}
+
{{.CacheItemTTL}}
{{end}}
-- cgit v1.2.3