? boost-563412.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.119
diff -u -p -r1.3.2.2.2.5.2.119 boost.module
--- boost.module	30 Aug 2009 07:33:20 -0000	1.3.2.2.2.5.2.119
+++ boost.module	30 Aug 2009 07:42:56 -0000
@@ -144,7 +144,7 @@ function boost_init() {
       || $_SERVER['SERVER_SOFTWARE'] === 'PHP CLI'
       || !BOOST_ENABLED
       || isset($_GET['nocache'])
-      || !boost_is_cacheable($GLOBALS['_boost_path'])
+      || !boost_is_cacheable()
       ) {
     $GLOBALS['_boost_cache_this'] = FALSE;
     return;
@@ -498,7 +498,7 @@ function boost_block($op = 'list', $delt
         case 'status':
           // Don't show the block to anonymous users, nor on any pages that
           // aren't even cacheable to begin with (e.g. admin/*).
-          if (!empty($user->uid) && boost_is_cacheable($GLOBALS['_boost_path'])) {
+          if (!empty($user->uid) && boost_is_cacheable()) {
             $output = t('This page is being served <strong>live</strong> to anonymous visitors, as it is not currently in the static page cache.');
 
             if (boost_is_cached($GLOBALS['_boost_path'])) {
@@ -533,7 +533,7 @@ function boost_block($op = 'list', $delt
         case 'config':
           // Don't show the block to anonymous users, nor on any pages that
           // aren't even cacheable to begin with (e.g. admin/*).
-          if (!empty($user->uid) && boost_is_cacheable($GLOBALS['_boost_path'])) {
+          if (!empty($user->uid) && boost_is_cacheable()) {
             $block['subject'] = '';
             $block['content'] = theme('boost_cache_status', -1, drupal_get_form('boost_block_db_settings_form'));
           }
@@ -549,7 +549,7 @@ function boost_block($op = 'list', $delt
               || $_SERVER['SERVER_SOFTWARE'] === 'PHP CLI'
               || !BOOST_ENABLED
               || isset($_GET['nocache'])
-              || !boost_is_cacheable($GLOBALS['_boost_path'])
+              || !boost_is_cacheable()
               || !empty($user->uid)
               || !module_exists('statistics')
               )) {
@@ -931,16 +931,12 @@ function _boost_get_http_header($regex, 
  * Determines whether a given Drupal page can be cached or not.
  *
  * To avoid potentially troublesome situations, the user login page is never
- * cached, nor are any admin pages. At present, we also refuse to cache any
- * RSS feeds provided by Drupal, since they would require special handling
- * in the mod_rewrite rule-set as they shouldn't be sent out using the
- * text/html content type.
- * TODO: don't cache pages with unacceptable symbols
+ * cached, nor are any admin pages.
  *
  * @param $path
  *   Current URL
  */
-function boost_is_cacheable($path) {
+function boost_is_cacheable($path = $GLOBALS['_boost_path']) {
   $path = (empty($path)) ? variable_get('site_frontpage', 'node') : $path;
   $normal_path = drupal_get_normal_path($path); // normalize path
 
