From a1b14a417342116ac31ec937ef1f4dea91ce62f4 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 22 Jul 2018 18:39:00 +0200 Subject: Implement cleaning up older log entries in mirrorcheck MirrorLog entries are not cleaned up by default and will clog the database. The django settings now defines a retention period in days for how long to keep mirror logs, on every mirrorcheck run older logs will be removed from the database. --- settings.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index df447b3e..6022d572 100644 --- a/settings.py +++ b/settings.py @@ -145,6 +145,9 @@ TORRENT_TRACKERS = ( 'http://tracker.archlinux.org:6969/announce', ) +# How long to keep mirrorlog's in days +MIRRORLOG_RETENTION_PERIOD = 365 + # Shorten some names just a bit COUNTRIES_OVERRIDE = { 'GB': 'United Kingdom', -- cgit v1.2.3-55-g3dc8