Koha/misc/cronjobs
Marcel de Rooy 5c4f27bd0d Enhancement 5074 (Adding possibility to cleanup_database.pl to purge only older sessions) [UPDATED for master]
Currently, the misc/cronjobs script cleanup_database truncates the session table (deleting all records, including active sessions).
With an additional parameter sessdays, this behavior could be changed or (perhaps better) extended. If the parameter sessdays is passed along with a number of days, the script only deletes older session records. This is accomplished by examining the values of lasttime, atime or ctime in the record.
So, calling the script like:
  ./cleanup_database.pl -v -sessions -sessdays 7
will only delete sessions records older than 7 days. The "old style" call
  ./cleanup_database.pl -v -sessions
still works too and truncates the table as before.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-11-02 11:02:15 +13:00
..
holds Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
rss Fix FSF address in directory misc/ 2010-03-16 20:17:54 -04:00
stats Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
advance_notices.pl Bug 4257: Make advance notices actually go out by avoiding null selects 2010-04-29 22:36:38 -04:00
backup.sh
build_browser_and_cloud.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
cart_to_shelf.pl Fix FSF address in directory misc/ 2010-03-16 20:17:54 -04:00
check-url.pl Update copyright license to GPL version 2 or later for two cronjobs. 2010-04-07 08:43:31 -04:00
cleanup_database.pl Enhancement 5074 (Adding possibility to cleanup_database.pl to purge only older sessions) [UPDATED for master] 2010-11-02 11:02:15 +13:00
cloud-kw.pl Update copyright license to GPL version 2 or later for two cronjobs. 2010-04-07 08:43:31 -04:00
cloud-sample.conf Fixes bugs #2875-2879 2008-12-29 19:59:44 -06:00
create_koc_db.pl Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
crontab.example bug 1532: various code cleanup 2010-02-18 22:49:48 -05:00
fines.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
gather_print_notices.pl another FSF address fix 2010-05-06 20:31:26 -04:00
j2a.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
longoverdue.pl Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
MARC21_parse_test.pl Fix FSF address in directory misc/ 2010-03-16 20:17:54 -04:00
notifyMailsOp.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
overdue_notices.pl Bug 5047 html option not in -help output 2010-10-06 07:54:28 -04:00
printoverdues.sh Change #! line for cronjob to refer to sh using canonical path. 2010-04-16 00:50:58 -04:00
process_message_queue.pl Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
runreport.pl Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
serialsUpdate.pl Bug 2505 - remove unnecessary -w and replace with use warnings; 2010-04-07 13:27:07 -04:00
services_throttle.pl Minor updates to minor cronjob script. 2008-12-31 09:47:54 -06:00
smsoverdues.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
zebraqueue_start.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00