[Koha] Culling old session data

Frederic Demians frederic at tamil.fr
Sun Jan 10 00:17:45 NZDT 2010


> Is there a periodic job that can be run to cull old sessions from the 
> table? We don't want to backup all the useless session data every night.

misc/cronjobs/cleanup_database.pl

Or just before doing a backup command (mysqldump), you can truncate 
session table:

  mysql -u<kohauser> -p<password> <koha-db-name> -e 'TRUNCATE TABLE 
sessions'

--
Frédéric


More information about the Koha mailing list