? boost-509694.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.68
diff -u -p -r1.3.2.2.2.5.2.68 boost.module
--- boost.module	3 Jul 2009 18:32:39 -0000	1.3.2.2.2.5.2.68
+++ boost.module	7 Jul 2009 20:35:23 -0000
@@ -53,6 +53,14 @@ define('BOOST_BANNER',               var
 define('BOOST_USER_ID',              @$GLOBALS['user']->uid);
 
 //////////////////////////////////////////////////////////////////////////////
+// Global variables
+
+//$GLOBALS['_boost_path'] = '';
+//$GLOBALS['_boost_query'] = '';
+//$GLOBALS['_boost_message_count'] = '';
+//$GLOBALS['_boost_cache_this'] = '';
+
+//////////////////////////////////////////////////////////////////////////////
 // Core API hooks
 
 /**
@@ -96,6 +104,7 @@ function boost_init() {
       || isset($_GET['nocache'])
       || !boost_is_cacheable($GLOBALS['_boost_path'])
       ) {
+    $GLOBALS['_boost_cache_this'] = FALSE;
     return;
   }
 
@@ -109,6 +118,7 @@ function boost_init() {
     if (BOOST_ENABLED != CACHE_AGGRESSIVE) {
       $GLOBALS['conf']['cache'] = CACHE_DISABLED;
     }
+    $GLOBALS['_boost_cache_this'] = TRUE;
     ob_start('_boost_ob_handler');
   }
 }
@@ -489,7 +499,7 @@ function _boost_ob_handler($buffer) {
   // exceedingly conservative here and only cache 'text/html' pages that
   // were output with a 200 OK status. Anything more is simply asking for
   // loads of trouble.
-  if (_boost_get_http_status() == 200 && strlen($buffer) > 0) {
+  if ($GLOBALS['_boost_cache_this'] && _boost_get_http_status() == 200 && strlen($buffer) > 0) {
     switch (_boost_get_content_type()) {
       case 'text/html':
         boost_cache_set($GLOBALS['_boost_path'], $buffer);
@@ -1052,6 +1062,7 @@ function boost_set_cookie($user, $expire
   else {
     setcookie(BOOST_COOKIE, FALSE, $expires, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
   }
+  $GLOBALS['_boost_cache_this'] = FALSE;
 }
 
 /**
