summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-13 18:29:34 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-13 18:29:34 +0200
commit6b138b98a6a92d31263dfcf8075e432f0df40649 (patch)
tree8f647ec1491de674f3093f24fad21521d25eec01 /utility
parente178dc843a677fe2512ebd2247e20016eb18cd5b (diff)
use before and after update hooks to delete items only after new ones have been fetched
Diffstat (limited to 'utility')
-rw-r--r--utility/updater.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/utility/updater.php b/utility/updater.php
index 0321f994d..cfe9cc16a 100644
--- a/utility/updater.php
+++ b/utility/updater.php
@@ -47,10 +47,9 @@ class Updater {
}
- public function cleanUp() {
+ public function beforeUpdate() {
$this->folderBusinessLayer->purgeDeleted();
$this->feedBusinessLayer->purgeDeleted();
- $this->itemBusinessLayer->autoPurgeOld();
}
@@ -59,4 +58,9 @@ class Updater {
}
+ public function afterUpdate() {
+ $this->itemBusinessLayer->autoPurgeOld();
+ }
+
+
} \ No newline at end of file