X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcron.php;h=eda88dbcd3f17e307bfebcff6fd35308a5d5ced2;hb=8cb4a8d0c420dc7c7fe9b96a43b78016c105a8fc;hp=9c2e6aeaa30d5f68f5b3f972befdb0e4845896c3;hpb=ea88e15a8cc10f99621720ca0e5a9598d0e64e0f;p=friendica.git diff --git a/include/cron.php b/include/cron.php index 9c2e6aeaa3..eda88dbcd3 100644 --- a/include/cron.php +++ b/include/cron.php @@ -84,7 +84,7 @@ function cron_run(&$argv, &$argc){ proc_run(PRIORITY_LOW, "include/cronjobs.php", "update_photo_albums"); // Delete all done workerqueue entries - dba::delete('workerqueue', array('done' => true)); + dba::e('DELETE FROM `workerqueue` WHERE `done` AND `executed` < UTC_TIMESTAMP() - INTERVAL 12 HOUR'); } // Poll contacts @@ -253,7 +253,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']); } } }