]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Cron.php
Restore previous permission comment in Widget\CalendarExport
[friendica.git] / src / Worker / Cron.php
index 7c8e5bc0f4ace03b5ad4fd363e4aba049f36a607..e523f75118af8ad0c415f2db2374a33f6ccf3799 100644 (file)
@@ -17,8 +17,6 @@ Class Cron {
        public static function execute($parameter = '', $generation = 0) {
                global $a;
 
-               require_once 'include/datetime.php';
-
                // Poll contacts with specific parameters
                if (!empty($parameter)) {
                        self::pollContacts($parameter, $generation);
@@ -42,6 +40,9 @@ Class Cron {
 
                logger('cron: start');
 
+               // Fork the cron jobs in separate parts to avoid problems when one of them is crashing
+               Addon::forkHooks($a->queue['priority'], "cron");
+
                // run queue delivery process in the background
                Worker::add(PRIORITY_NEGLIGIBLE, "Queue");