? boost-305071.3.patch
? boost-305071.patch
? boost-459530.patch
? boost-619914.patch
Index: boost.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.admin.inc,v
retrieving revision 1.1.2.1.2.3.2.100
diff -u -p -r1.1.2.1.2.3.2.100 boost.admin.inc
--- boost.admin.inc	30 Oct 2009 15:30:48 -0000	1.1.2.1.2.3.2.100
+++ boost.admin.inc	31 Oct 2009 23:44:38 -0000
@@ -1022,7 +1022,7 @@ function boost_admin_generate_htaccess($
     $string .= "  # Caching for anonymous users\n";
     $string .= "  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request\n";
     $string .= "  RewriteCond %{REQUEST_METHOD} !^GET$ [OR]\n";
-    $string .= "  RewriteCond %{REQUEST_URI} (^$drupal_subdir(admin|$cache_dir|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]\n";
+    $string .= "  RewriteCond %{REQUEST_URI} (^$drupal_subdir(admin|logout|$cache_dir|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]\n";
     $string .= "  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]\n";
     $string .= BOOST_LOOPBACK_BYPASS ? "  RewriteCond %{REMOTE_ADDR} ^$server_ip$ [OR]\n" : '';
     $string .= "  RewriteCond %{HTTPS} on\n";
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.214
diff -u -p -r1.3.2.2.2.5.2.214 boost.module
--- boost.module	31 Oct 2009 23:21:23 -0000	1.3.2.2.2.5.2.214
+++ boost.module	31 Oct 2009 23:44:39 -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;
@@ -237,13 +238,15 @@ function boost_init() {
  * cached by Boost.
  */
 function boost_exit($destination = NULL) {
-  // Check that hook_exit() was invoked by drupal_goto() for a POST request:
-  if (!empty($destination) && $_SERVER['REQUEST_METHOD'] == 'POST') {
+  // Check that hook_exit() was invoked by drupal_goto() & not a GET request:
+  if (!empty($destination) && $_SERVER['REQUEST_METHOD'] != 'GET') {
 
     // 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())) {
+    $GLOBALS['_boost_message_count'] += count(drupal_get_messages(NULL, FALSE));
+    $GLOBALS['_boost_message_count'] += (int)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);
@@ -668,6 +671,8 @@ function boost_user($op, &$edit, &$accou
       break;
     case 'logout':
       boost_set_cookie($user, BOOST_TIME - 86400);
+      $GLOBALS['_boost_message_count'] += 1;
+      drupal_add_js('location.reload();', 'inline', 'header');
       break;
     case 'delete':
       // Expire the relevant user page from the static page cache to prevent serving stale content:
@@ -1257,6 +1262,7 @@ function boost_is_cacheable($path) {
   if (   $normal_path == 'user'
       || preg_match('!^user/(login|register|password)!', $normal_path)
       || preg_match('!^admin!', $normal_path)
+      || preg_match('!^logout!', $normal_path)
       || preg_match('!comment/reply$!', $normal_path)
       || preg_match('!^node/add!', $normal_path)
       || preg_match('!^openid!', $normal_path)
Index: htaccess/boosted1.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/htaccess/Attic/boosted1.txt,v
retrieving revision 1.1.2.18
diff -u -p -r1.1.2.18 boosted1.txt
--- htaccess/boosted1.txt	30 Oct 2009 15:30:48 -0000	1.1.2.18
+++ htaccess/boosted1.txt	31 Oct 2009 23:44:39 -0000
@@ -51,7 +51,7 @@
   # Caching for anonymous users
   # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR https request
   RewriteCond %{REQUEST_METHOD} !^GET$ [OR]
-  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
+  RewriteCond %{REQUEST_URI} (^/(admin|logout|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
   RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
   RewriteCond %{HTTPS} on
   RewriteRule .* - [S=7]
Index: htaccess/boosted2.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/htaccess/Attic/boosted2.txt,v
retrieving revision 1.1.2.19
diff -u -p -r1.1.2.19 boosted2.txt
--- htaccess/boosted2.txt	30 Oct 2009 15:30:48 -0000	1.1.2.19
+++ htaccess/boosted2.txt	31 Oct 2009 23:44:39 -0000
@@ -51,7 +51,7 @@
   # Caching for anonymous users
   # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR https request
   RewriteCond %{REQUEST_METHOD} !^GET$ [OR]
-  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
+  RewriteCond %{REQUEST_URI} (^/(admin|logout|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
   RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
   RewriteCond %{HTTPS} on
   RewriteRule .* - [S=7]
