function boost_async_call_crawler in Boost 6
Call a URL with a timeout of 3 seconds.
Parameters
$self: URL to restart the loop.
$expire: Has the site changed, if so get expire column
1 call to boost_async_call_crawler()
- boost_crawler_run in ./
boost.module - The brains of the crawler.
File
- ./
boost.module, line 6081 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_async_call_crawler($self, $this_thread = NULL, $total_threads = NULL, $expire) {
$self .= isset($this_thread) ? '&thread=' . $this_thread : '';
$self .= isset($total_threads) ? '&total=' . $total_threads : '';
$self .= isset($expire) ? '&expire=' . (int) $expire : '';
$GLOBALS['_boost_default_socket_timeout'] = ini_get('default_socket_timeout');
ini_set('default_socket_timeout', 3);
boost_drupal_http_request($self, 3, 'POST');
ini_set('default_socket_timeout', $GLOBALS['_boost_default_socket_timeout']);
ini_set('max_execution_time', $GLOBALS['_boost_max_execution_time']);
ini_set('output_buffering', $GLOBALS['_boost_output_buffering']);
}