summaryrefslogtreecommitdiffstats
path: root/backgroundjob
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 /backgroundjob
parente178dc843a677fe2512ebd2247e20016eb18cd5b (diff)
use before and after update hooks to delete items only after new ones have been fetched
Diffstat (limited to 'backgroundjob')
-rw-r--r--backgroundjob/task.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/backgroundjob/task.php b/backgroundjob/task.php
index d2eaab6bd..587259378 100644
--- a/backgroundjob/task.php
+++ b/backgroundjob/task.php
@@ -38,8 +38,9 @@ class Task {
// make it possible to turn off cron updates if you use an external
// script to execute updates in paralell
if ($container['useCronUpdates']) {
- $container['Updater']->cleanUp();
+ $container['Updater']->beforeUpdate();
$container['Updater']->update();
+ $container['Updater']->afterUpdate();
}
}