diff options
Diffstat (limited to 'backgroundjob')
-rw-r--r-- | backgroundjob/task.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/backgroundjob/task.php b/backgroundjob/task.php index 24470c1a6..d432aa8c2 100644 --- a/backgroundjob/task.php +++ b/backgroundjob/task.php @@ -34,10 +34,13 @@ class Task { static public function run() { $container = new DIContainer(); - $container['FolderBusinessLayer']->purgeDeleted(); - $container['FeedBusinessLayer']->purgeDeleted(); - $container['ItemBusinessLayer']->autoPurgeOld(); - $container['FeedBusinessLayer']->updateAll(); + + // 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']->update(); + } } |