summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-09-18 15:50:45 +0800
committerLauris BH <lauris.buksis@zzdats.lv>2019-09-18 10:50:45 +0300
commit3c0e6d11267bc9c45e6ff58b8c7a8511f4ccb0ab (patch)
treead64e66e92fe983d8770fa66d8eca73b02c6db17 /docs/content
parent28362195a0ecbf1f68167d5d9dee13c691079afe (diff)
downloadgitea-3c0e6d11267bc9c45e6ff58b8c7a8511f4ccb0ab.tar.gz
gitea-3c0e6d11267bc9c45e6ff58b8c7a8511f4ccb0ab.zip
update cache item_ttl docs (#8222)
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.en-us.md1
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.zh-cn.md7
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
index e8251350fd..60d7341f24 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
@@ -293,6 +293,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
- `HOST`: **\<empty\>**: Connection string for `redis` and `memcache`.
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
+- `ITEM_TTL`: **16h**: Time to keep items in cache if not used, Setting it to 0 disables caching.
## Session (`session`)
diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
index b4b9e4e3a9..541d66f4e9 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
@@ -144,11 +144,12 @@ menu:
## Cache (`cache`)
-- `ADAPTER`: 缓存引擎,可以为 `memory`, `redis` 或 `memcache`。
-- `INTERVAL`: 只对内存缓存有效,GC间隔,单位秒。
-- `HOST`: 针对redis和memcache有效,主机地址和端口。
+- `ADAPTER`: **memory**: 缓存引擎,可以为 `memory`, `redis` 或 `memcache`。
+- `INTERVAL`: **60**: 只对内存缓存有效,GC间隔,单位秒。
+- `HOST`: **\<empty\>**: 针对redis和memcache有效,主机地址和端口。
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
+- `ITEM_TTL`: **16h**: 缓存项目失效时间,设置为 0 则禁用缓存。
## Session (`session`)