diff --git a/debian/alternc.cron.d b/debian/alternc.cron.d index 7cd02c68..305c9aea 100644 --- a/debian/alternc.cron.d +++ b/debian/alternc.cron.d @@ -17,3 +17,8 @@ # Once a week at 7am, optimise the AlternC database 0 1 * * 7 alterncpanel /usr/lib/alternc/alternc-dboptimize + +# We change the session directory... debian's patch modified : +# Look for and purge old sessions every 30 minutes +09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/alternc/sessions/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete +