summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-05-01 20:17:02 +0800
committerGitHub <noreply@github.com>2021-05-01 14:17:02 +0200
commitae6d7860be6a5f5032f86369af3adcedf0ad0725 (patch)
treef11369529ab4bf4c0dd73500ec4470320dd4cf6e /docs
parentca0460beb7201737510f522c1aa6d1cc7f394f72 (diff)
downloadgitea-ae6d7860be6a5f5032f86369af3adcedf0ad0725.tar.gz
gitea-ae6d7860be6a5f5032f86369af3adcedf0ad0725.zip
add cron job to delete old actions from database (#15688)
that's a way to save database storage space. Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.en-us.md7
1 files changed, 7 insertions, 0 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 95c20ca410..c620614cab 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
@@ -786,6 +786,13 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
- `NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
+#### Cron - Delete all old actions from database ('cron.delete_old_actions')
+- `ENABLED`: **false**: Enable service.
+- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
+- `NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
+- `SCHEDULE`: **@every 128h**: Cron syntax for scheduling a work, e.g. `@every 128h`.
+- `OLDER_THAN`: **@every 8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
+
## Git (`git`)
- `PATH`: **""**: The path of git executable. If empty, Gitea searches through the PATH environment.