From 6b138b98a6a92d31263dfcf8075e432f0df40649 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 13 Sep 2013 18:29:34 +0200 Subject: use before and after update hooks to delete items only after new ones have been fetched --- utility/updater.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utility') 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 -- cgit v1.2.3