? boost-543310.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.90
diff -u -p -r1.3.2.2.2.5.2.90 boost.module
--- boost.module	6 Aug 2009 14:56:03 -0000	1.3.2.2.2.5.2.90
+++ boost.module	9 Aug 2009 04:15:46 -0000
@@ -418,6 +418,12 @@ function boost_block($op = 'list', $delt
           'weight' => 10,
           'cache'  => BLOCK_NO_CACHE,
         ),
+        'config' => array(
+          'info'   => t('Boost: Pages cache configuration'),
+          'region' => 'right',
+          'weight' => 10,
+          'cache'  => BLOCK_NO_CACHE,
+        ),
         'stats' => array(
           'info'   => t('Boost: AJAX core statistics'),
           'region' => 'right',
@@ -478,12 +484,19 @@ function boost_block($op = 'list', $delt
                 $output .= t(' MESSAGES: %msg <br /> !performance', array('%msg' => $drupal_msg, '!performance' => l(t('Turn Off Error Checking'), 'admin/settings/performance')));
               }
             }
-            $output .=  drupal_get_form('boost_block_db_settings_form');
 
             $block['subject'] = '';
             $block['content'] = theme('boost_cache_status', isset($ttl) ? $ttl : -1, $output);
           }
           break;
+        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'])) {
+            $block['subject'] = '';
+            $block['content'] = theme('boost_cache_status', -1, drupal_get_form('boost_block_db_settings_form'));
+          }
+          break;
         case 'stats':
           $filename = 'boost_stats.php';
           $block = module_invoke('statistics', 'block', 'view', 0);
