diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 15:31:55 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 15:31:55 +0200 |
commit | 9507e6a3ee7303a74f9c36b8d87cd0101c26d313 (patch) | |
tree | 87ff224fdfc363a6ec0bb1c30ea76f180985c47b /backgroundjob | |
parent | 27c7c7773eaaa0aa15fbf5bffeee501941d0d339 (diff) |
make cron updater optional, created updater class for better updating handling, created a route for the api to clean up old stuff
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(); + } } |