X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcron.php;h=8842d3bdfa6eabea99bf4a21cb2b1675d4cadad8;hb=1f9b52f2bf62a00add5b62b21e2dd009246345ef;hp=76f3e410196185514b9c24a12ef8ff3c6d8e8d62;hpb=4e49939421d39dfa971d8744691568bcdbdca15e;p=friendica.git diff --git a/include/cron.php b/include/cron.php index 76f3e41019..8842d3bdfa 100644 --- a/include/cron.php +++ b/include/cron.php @@ -42,12 +42,6 @@ function cron_run(&$argv, &$argc){ // Expire and remove user entries proc_run(PRIORITY_MEDIUM, "include/cronjobs.php", "expire_and_remove_users"); - // Check OStatus conversations - proc_run(PRIORITY_MEDIUM, "include/cronjobs.php", "ostatus_mentions"); - - // Check every conversation - proc_run(PRIORITY_MEDIUM, "include/cronjobs.php", "ostatus_conversations"); - // Call possible post update functions proc_run(PRIORITY_LOW, "include/cronjobs.php", "post_update"); @@ -82,6 +76,12 @@ function cron_run(&$argv, &$argc){ proc_run(PRIORITY_MEDIUM, 'include/dbclean.php'); proc_run(PRIORITY_LOW, "include/cronjobs.php", "update_photo_albums"); + + // Delete all done workerqueue entries + dba::delete('workerqueue', array('`done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 12 HOUR')); + + // check upstream version? + Worker::add(PRIORITY_LOW, 'checkversion'); } // Poll contacts @@ -250,7 +250,7 @@ function cron_poll_contacts($argc, $argv) { } else { $priority = PRIORITY_LOW; } - proc_run(array('priority' => $priority, 'dont_fork' => true), 'include/onepoll.php', intval($contact['id'])); + proc_run(array('priority' => $priority, 'dont_fork' => true), 'include/onepoll.php', (int)$contact['id']); } } }