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:
1d76e4b
)
Prune.php
author
Alan Knowles
<alan@roojs.com>
Fri, 14 Nov 2014 03:40:26 +0000
(11:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 14 Nov 2014 03:40:26 +0000
(11:40 +0800)
Prune.php
patch
|
blob
|
history
diff --git
a/Prune.php
b/Prune.php
index
a8f65a3
..
0c94d7c
100644
(file)
--- a/
Prune.php
+++ b/
Prune.php
@@
-47,7
+47,7
@@
class Pman_Core_Prune extends Pman
function prune($inM)
{
// 40 seconds ? to delete 100K records..
- DB_DataObject::debugLevel(1);
+
//
DB_DataObject::debugLevel(1);
$f = DB_DataObject::Factory('reader_article');
$f->query("
DELETE FROM Events where
@@
-61,7
+61,7
@@
class Pman_Core_Prune extends Pman
DELETE FROM Events where
event_when < NOW() - INTERVAL 1 MONTH
AND
- action IN ('
RELOAD', 'LOGIN
')
+ action IN ('
NOTIFY
')
LIMIT 100000
");