From 8f19084d2e22d15f7eef6a7c62b004155bf14b8d Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 30 Sep 2011 14:09:03 +0000 Subject: [PATCH] =?UTF-8?q?On=20rangeait=20les=20sessions=20ailleurs...=20?= =?UTF-8?q?sans=20jamais=20les=20purger=20=C3=A0=20la=20Debian=20Xals=20:?= =?UTF-8?q?=20a=20merger=20en=201.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/alternc.cron.d | 5 +++++ 1 file changed, 5 insertions(+) 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 +