X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fpoller.php;h=d00360d2b7414835173767faaa8262417ce1ef87;hb=61c1317f804d8519492af249f8b4b8985f6cec5e;hp=b3a66fc389d467476db31c16d36eebb53454fcad;hpb=ac954278a5ecd9632052ab30a265cc0cd311f608;p=friendica.git diff --git a/include/poller.php b/include/poller.php index b3a66fc389..d00360d2b7 100644 --- a/include/poller.php +++ b/include/poller.php @@ -39,7 +39,7 @@ function poller_run($argv, $argc){ return; } - if (App::maxload_reached()) { + if ($a->maxload_reached()) { return; } @@ -213,7 +213,7 @@ function poller_max_connections_reached() { // The processlist only shows entries of the current user if ($max != 0) { $r = q("SHOW PROCESSLIST"); - if (!$r) + if (!dbm::is_result($r)) return false; $used = count($r); @@ -556,6 +556,9 @@ function clear_worker_processes() { function poller_run_cron() { logger('Add cron entries', LOGGER_DEBUG); + // Check for spooled items + proc_run(PRIORITY_HIGH, "include/spool_post.php"); + // Run the cron job that calls all other jobs proc_run(PRIORITY_MEDIUM, "include/cron.php");