From: Florent Bruneau Date: Thu, 18 Oct 2007 21:46:37 +0000 (+0200) Subject: Auto-cleanup profile event table X-Git-Tag: xorg/0.9.16~269 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=87691841376583c0db5817c54c30bc60c81a0deb;p=platal.git Auto-cleanup profile event table Signed-off-by: Florent Bruneau --- diff --git a/bin/cron/notifs.send.php b/bin/cron/notifs.send.php index b48682f..0f9f216 100755 --- a/bin/cron/notifs.send.php +++ b/bin/cron/notifs.send.php @@ -92,5 +92,8 @@ EOF; $mailer->send(); } +XDB::execute("DELETE FROM watch_profile + WHERE ts < DATE_SUB(CURRENT_DATE, INTERVAL 15 DAY)"); + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>