? boost-305071.1.patch
? boost-305071.2.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.213
diff -u -p -r1.3.2.2.2.5.2.213 boost.module
--- boost.module	30 Oct 2009 15:30:48 -0000	1.3.2.2.2.5.2.213
+++ boost.module	30 Oct 2009 18:05:46 -0000
@@ -133,7 +133,7 @@ function boost_help($path, $arg) {
       return '<p>' . t('') . '</p>'; // TODO: add help text.
   }
   //hack to get drupal_get_messages before they are destroyed.
-  $GLOBALS['_boost_message_count'] = count(drupal_get_messages(NULL, FALSE));
+  $GLOBALS['_boost_message_count'] += count(drupal_get_messages(NULL, FALSE));
 }
 
 /**
@@ -159,6 +159,7 @@ function boost_views_pre_render(&$view) 
  */
 function boost_init() {
   global $user, $base_path;
+  $GLOBALS['_boost_message_count'] = 0;
   // Disable all caches when nocache is set
   if (isset($_GET['nocache'])) {
     $GLOBALS['conf']['cache'] = CACHE_DISABLED;
@@ -243,7 +244,7 @@ function boost_exit($destination = NULL)
     // Check that we're dealing with an anonymous visitor. and that some
     // session messages have actually been set during this page request:
     global $user;
-    if (empty($user->uid) && ($messages = drupal_set_message())) {
+    if (empty($user->uid) && $GLOBALS['_boost_message_count']) {
       // FIXME: call any remaining exit hooks since we're about to terminate?
 
       $query_parts = parse_url($destination);
@@ -662,6 +663,7 @@ function boost_user($op, &$edit, &$accou
       break;
     case 'logout':
       boost_set_cookie($user, BOOST_TIME - 86400);
+      $GLOBALS['_boost_message_count'] += 1;
       break;
     case 'delete':
       // Expire the relevant user page from the static page cache to prevent serving stale content:
