projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8de42d7
)
Prune.php
author
Alan Knowles
<alan@roojs.com>
Thu, 16 Oct 2014 05:32:09 +0000
(13:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 16 Oct 2014 05:32:09 +0000
(13:32 +0800)
Prune.php
patch
|
blob
|
history
diff --git
a/Prune.php
b/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..