diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-13 18:29:34 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-13 18:29:34 +0200 |
commit | 6b138b98a6a92d31263dfcf8075e432f0df40649 (patch) | |
tree | 8f647ec1491de674f3093f24fad21521d25eec01 /backgroundjob | |
parent | e178dc843a677fe2512ebd2247e20016eb18cd5b (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.php | 3 |
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(); } } |