? boost-538460.5.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.89
diff -u -p -r1.3.2.2.2.5.2.89 boost.module
--- boost.module	6 Aug 2009 08:30:14 -0000	1.3.2.2.2.5.2.89
+++ boost.module	6 Aug 2009 13:21:05 -0000
@@ -1973,14 +1973,6 @@ function boost_crawler_init() {
     // Start to do crawler stuff
     else {
       if (boost_crawler_init_tables()) {
-        $start = variable_get('boost_crawler_position', 0);
-        $count = db_result(db_query('SELECT COUNT(*) FROM {boost_crawler}'));
-        if ($count <= $start) {
-          // Crawler done;
-          watchdog('boost', 'Crawler Done');
-          return TRUE;
-        }
-
         //Spin Up Threads
         $thread_primed = variable_get('boost_crawler_threads_primed', FALSE);
         $threads = 2; //variable_get('boost_crawler_threads', 4);
@@ -2015,6 +2007,15 @@ function boost_crawler_init() {
         variable_set('boost_crawler_position', $start + $step);
 
         $results = db_query_range("SELECT url FROM {boost_crawler} ORDER BY id ASC", $start, $step);
+        $url = db_fetch_array($results)
+        if (!$url) {
+          watchdog('boost', 'Crawler Done');
+          return TRUE;
+        }
+        else {
+          drupal_http_request($url['url']);
+          set_time_limit(0);
+        }
         while ($url = db_fetch_array($results)) {
           drupal_http_request($url['url']);
           //watchdog('boost', $url['url']);
