Prune.php
authorAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2015 09:29:27 +0000 (17:29 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2015 09:29:27 +0000 (17:29 +0800)
Prune.php

index a297062..d14bac7 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -52,6 +52,8 @@ class Pman_Core_Prune extends Pman
         $f->query("
             DELETE FROM Events where 
                   event_when < NOW() - INTERVAL {$inM} MONTH
+                  AND
+                  action != 'NOTIFY'
                   LIMIT 100000
         ");