summaryrefslogtreecommitdiffstats
path: root/custom
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 /custom
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 'custom')
-rw-r--r--custom/conf/app.example.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 35f1bfaeab..e8b02bdae3 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1145,6 +1145,14 @@ RUN_AT_START = false
NO_SUCCESS_NOTICE = false
SCHEDULE = @every 72h
+; Delete all old actions from database
+[cron.delete_old_actions]
+ENABLED = false
+RUN_AT_START = false
+NO_SUCCESS_NOTICE = false
+SCHEDULE = @every 168h
+OLDER_THAN = 8760h
+
[git]
; The path of git executable. If empty, Gitea searches through the PATH environment.
PATH =