diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-07-22 18:39:00 +0200 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-07-22 22:03:06 +0200 |
commit | a1b14a417342116ac31ec937ef1f4dea91ce62f4 (patch) | |
tree | 5ab8fe64f1cb2c2be3c5aa930db32e5d28b3330f /settings.py | |
parent | e4f22521ed7f23042a7c55cbc4ad4fa33ed5c609 (diff) | |
download | archweb-a1b14a417342116ac31ec937ef1f4dea91ce62f4.tar.gz archweb-a1b14a417342116ac31ec937ef1f4dea91ce62f4.zip |
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.
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
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', |