X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=779373a632faba6c273b962348cbaf343aefb89c;hb=16956646460aef1d8e0c41b261ce56af88e2f4f6;hp=45ba2fbf287e0a54d31151d9266e36650dc1093d;hpb=b6d486a3a4ce5d4fb732ecd8a6b6942eaf2917b6;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php old mode 100644 new mode 100755 index 45ba2fbf..779373a6 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -27,14 +27,18 @@ define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); + if (!function_exists('pcntl_fork')) { + die("error: This script requires PHP compiled with PCNTL module.\n"); + } + if (!ENABLE_UPDATE_DAEMON) { - die("Please enable option ENABLE_UPDATE_DAEMON in config.php\n"); + die("error: Please enable option ENABLE_UPDATE_DAEMON in config.php\n"); } require_once "db.php"; require_once "db-prefs.php"; require_once "functions.php"; - require_once "magpierss/rss_fetch.inc"; + require_once "lib/magpierss/rss_fetch.inc"; error_reporting(DEFAULT_ERROR_LEVEL); @@ -164,8 +168,8 @@ // FIXME : $last_purge is of no use in a multiprocess update. // FIXME : We ALWAYS purge old posts. - _debug("Purging old posts (random 30 feeds)..."); - global_purge_old_posts($link, true, 30); + //_debug("Purging old posts (random 30 feeds)..."); + //global_purge_old_posts($link, true, 30); // Call to the feed batch update function // or regenerate feedbrowser cache