summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2022-05-09 18:33:19 +0200
committerGitHub <noreply@github.com>2022-05-09 18:33:19 +0200
commita61a47f9a00a387015a2f00f656f9f51dfd2b341 (patch)
tree5109a8b8e572870aa31b500fc1b4a3dfad108681 /docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
parentSet the LastModified header for raw files (#18356) (diff)
downloadforgejo-a61a47f9a00a387015a2f00f656f9f51dfd2b341.tar.xz
forgejo-a61a47f9a00a387015a2f00f656f9f51dfd2b341.zip
Update documentation to disable duration settings with -1 instead of 0 (#19647)
To turn off the notification endpoint polling, the value should be set to -1, not 0.
Diffstat (limited to '')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.zh-cn.md4
1 files changed, 2 insertions, 2 deletions
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 600e54a85e..cc6e950fbd 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
@@ -175,12 +175,12 @@ menu:
- `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 则禁用缓存。
+- `ITEM_TTL`: **16h**: 缓存项目失效时间,设置为 -1 则禁用缓存。
## Cache - LastCommitCache settings (`cache.last_commit`)
- `ENABLED`: **true**: 是否启用。
-- `ITEM_TTL`: **8760h**: 缓存项目失效时间,设置为 0 则禁用缓存。
+- `ITEM_TTL`: **8760h**: 缓存项目失效时间,设置为 -1 则禁用缓存。
- `COMMITS_COUNT`: **1000**: 仅当仓库的提交数大于时才启用缓存。
## Session (`session`)