function boost_crawler_threads_alive in Boost 6
Check for any dead threads.
2 calls to boost_crawler_threads_alive()
- boost_admin_boost_performance_page in ./
boost.admin.inc - Form builder; Displays Boost's configuration page.
- boost_crawler_run in ./
boost.module - The brains of the crawler.
File
- ./
boost.module, line 6329 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_crawler_threads_alive() {
// Load all thread times
$result = db_query("SELECT * FROM {variable} WHERE name LIKE 'boost_crawler_thread_num_%'");
while ($variable = db_fetch_object($result)) {
$time = unserialize($variable->value);
if ($time != 0 && $time + BOOST_MAX_THREAD_TIME > BOOST_TIME) {
return TRUE;
}
}
return FALSE;
}