/** * */ public function __construct() { set_time_limit(0); ignore_user_abort(true); nc_Core::get_object()->db->query("SET wait_timeout=900"); // might loose connection when running in slow mode nc_search::enable_error_logging(); }
/** * */ public function __construct() { $this->start_time = time(); $this->time_threshold = $this->get_time_threshold(); if (self::$original_time_limit === null) { self::$original_time_limit = ini_get('max_execution_time'); } $this->time_limit = self::$original_time_limit; $this->memory_threshold = $this->get_memory_threshold(); $this->memory_limit = nc_search_util::int_from_bytes_string(ini_get('memory_limit')); $this->delay = nc_search::get_setting('CrawlerDelay'); $this->cycle_limit = $this->get_max_cycles_number(); @set_time_limit(0); nc_search::enable_error_logging(); ignore_user_abort(true); nc_Core::get_object()->db->query("SET wait_timeout=900"); // might loose connection when running in slow mode }