Prune.php
authorAlan Knowles <alan@roojs.com>
Thu, 16 Oct 2014 05:32:09 +0000 (13:32 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Oct 2014 05:32:09 +0000 (13:32 +0800)
Prune.php

index 9d1c103..d184830 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -46,12 +46,8 @@ class Pman_Core_Prune extends Pman
         //DB_DataObject::debugLevel(1);
         $f = DB_DataObject::Factory('reader_article');
         $f->query("
-            DELETE FROM reader_article where 
-                  fetched_dt < NOW() - INTERVAL {$inM} MONTH
-                  AND
-                  fetched
-                  AND
-                  views < 1
+            DELETE FROM Events where 
+                  event_when < NOW() - INTERVAL {$inM} MONTH
                   LIMIT 100000
         ");
         // pruning is for our press project - so we do not clean up dependant tables at present..