]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon: use define_default
authorAndrew Dolgov <fox@fakecake.org>
Wed, 24 Apr 2013 09:52:09 +0000 (13:52 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 24 Apr 2013 09:52:09 +0000 (13:52 +0400)
update_daemon2.php

index 05ccb1356977c1b701b0581886aa28580a6d7a4c..193a9c1555e52c66da14262b8235b72e8954a840 100755 (executable)
@@ -9,24 +9,22 @@
        define('DISABLE_SESSIONS', true);
 
        require_once "version.php";
-
-       if (strpos(VERSION, ".99") !== false || getenv('DAEMON_XDEBUG')) {
-               define('DAEMON_EXTENDED_DEBUG', true);
-       }
-
+       require_once "config.php";
        require_once "autoload.php";
        require_once "functions.php";
+
+       // defaults
+       define_default('PURGE_INTERVAL', 3600); // seconds
+       define_default('MAX_CHILD_RUNTIME', 600); // seconds
+       define_default('MAX_JOBS', 2);
+       define_default('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); // seconds
+       define_default('DAEMON_FEED_LIMIT', 250);
+
        require_once "rssfuncs.php";
        require_once "sanity_check.php";
-       require_once "config.php";
        require_once "db.php";
        require_once "db-prefs.php";
 
-       // defaults
-       define('PURGE_INTERVAL', 3600); // seconds
-       define('MAX_CHILD_RUNTIME', 600); // seconds
-       define('MAX_JOBS', 2);
-       define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); // seconds
 
        if (!function_exists('pcntl_fork')) {
                die("error: This script requires PHP compiled with PCNTL module.\n");