[koha-commits] main Koha release repository branch, 3.0.x, updated. v3.00.06-61-g9ad9e65
Git repo owner
gitmaster at git.koha-community.org
Thu Jul 29 15:56:35 CEST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, 3.0.x has been updated
via 9ad9e65d3fdb6b906fc984da1adce844ae941b20 (commit)
from a6d477d3ed744789598ccb300a7a244cbe2481a7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9ad9e65d3fdb6b906fc984da1adce844ae941b20
Author: Marcel de Rooy <M.de.Rooy at rijksmuseum.nl>
Date: Thu Jul 29 12:46:02 2010 +0000
Enhancement 5074 (Adding possibility to cleanup_database.pl to purge only older sessions) [for 3.0.x and 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.
Patch can be applied to 3.0.x and master.
-----------------------------------------------------------------------
Summary of changes:
misc/cronjobs/cleanup_database.pl | 46 ++++++++++++++++++++++++++++++++++--
1 files changed, 43 insertions(+), 3 deletions(-)
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list