define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache-daemon');
define('DISABLE_SESSIONS', true);
- define('MAX_JOBS', 2);
-
require_once "version.php";
if (strpos(VERSION, ".99") !== false || getenv('DAEMON_XDEBUG')) {
require_once "sanity_check.php";
require_once "config.php";
+ define('MAX_JOBS', 2);
+
define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL);
if (!ENABLE_UPDATE_DAEMON) {
db_close($link);
-
while (true) {
// Since sleep is interupted by SIGCHLD, we need another way to
return;
}
- if (DB_TYPE == "pgsql") {
- pg_query("set client_encoding = 'utf-8'");
- pg_set_client_encoding("UNICODE");
- } else {
- if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
- db_query($link, "SET NAMES " . MYSQL_CHARSET);
- // db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
- }
- }
+ init_connection($link);
// We disable stamp file, since it is of no use in a multiprocess update.
// not really, tho for the time being -fox