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);
// 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