Auto-cleanup profile event table
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Oct 2007 21:46:37 +0000 (23:46 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Oct 2007 21:46:37 +0000 (23:46 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/notifs.send.php

index b48682f..0f9f216 100755 (executable)
@@ -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:
 ?>