[Koha] cleanup_database.pl

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Fri Oct 14 08:59:09 NZDT 2011


Include the --sessions parameter too.
I agree with you that this should be improved. 
Will send a patch for that next week.

________________________________________
Van: koha-bounces at lists.katipo.co.nz [koha-bounces at lists.katipo.co.nz] namens Tom Hanstra [tom at nd.edu]
Verzonden: donderdag 13 oktober 2011 21:46
Aan: Koha listserv
Onderwerp: [Koha] cleanup_database.pl

I'm not sure if this is a bug or a problem in how I'm running the
clean_database.pl script...

Running the script, it says the sessions are going to be purged:

$ PERL5LIB=$PERL5LIB $KOHA_CRON_PATH/cleanup_database.pl -v --sessions
--sessdays 2
Session purge triggered with days>2.
0 sessions were deleted.
Done with session purge with days>2.

But there are sessions older than 2 days:

mysql> select * from sessions;
| 00000ea4915d23eff57160797fdd1d55 | ---
_SESSION_ATIME: '1315496500'
_SESSION_CTIME: '1315496500'
_SESSION_ID: 00000ea4915d23eff57160797fdd1d55
...

and Unix time stamp '1315496500' translates to 'Thu, 08 Sep 2011
15:41:40 GMT'.

Did I miss something??

Tom

--

-----------------------------------------------------------------------------
      Tom Hanstra                              Systems Administrator
      Hesburgh Libraries of Notre Dame         Phone: (574)631-4686
      213 Hesburgh Library                     Email: tom at nd.edu
      Notre Dame, IN  46556

                         Please stop, I'm bored.
                                                Miss Sweetie Poo
-----------------------------------------------------------------------------

_______________________________________________
Koha mailing list  http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list