Bug 6478 -- add purge_suggestions.pl to the crontab.example
authorLiz Rea <lrea@nekls.org>
Tue, 7 Jun 2011 16:44:14 +0000 (11:44 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 16 Jul 2011 08:23:20 +0000 (20:23 +1200)
To test:
Verify that there is a listed job for purge_suggestions.pl in the crontab.example

Bug 6478 - adding --days support and help verbiage to the cronjob.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/cronjobs/crontab.example

index b43d377..3c5030d 100644 (file)
@@ -76,3 +76,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
 
 # clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
 16 1 * * * $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10
+
+# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
+@weekly        $KOHA_CRON_PATH/purge_suggestions.pl --days XX > /dev/null 2>&1