diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-20 15:09:15 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-20 15:09:15 +0200 |
commit | 381f8efd1096001f34810414c1054a00a64179c8 (patch) | |
tree | a8bd92117dfd7352bfae3e06cacf57287312036a /businesslayer | |
parent | 4d4a27969705b8ff14c139795228d2f05e017b87 (diff) |
set autopurge limit to 200 and purge per feed rather than per user or per all items, fix #98
Diffstat (limited to 'businesslayer')
-rw-r--r-- | businesslayer/itembusinesslayer.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/businesslayer/itembusinesslayer.php b/businesslayer/itembusinesslayer.php index fd01506a6..d97108431 100644 --- a/businesslayer/itembusinesslayer.php +++ b/businesslayer/itembusinesslayer.php @@ -128,15 +128,7 @@ class ItemBusinessLayer extends BusinessLayer { * old, the id is taken */ public function autoPurgeOld(){ - $readAndNotStarred = - $this->mapper->getReadOlderThanThreshold($this->autoPurgeCount); - - // delete entries with a lower id than last item - if($this->autoPurgeCount > 0 - && isset($readAndNotStarred[$this->autoPurgeCount-1])){ - $this->mapper->deleteReadOlderThanId( - $readAndNotStarred[$this->autoPurgeCount-1]->getId()); - } + $this->mapper->deleteReadOlderThanThreshold($this->autoPurgeCount); } |