? boost-577180.patch
? boost-578546.patch
? boost-579668.patch
? boost-581320.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.69
diff -u -p -r1.1.2.1.2.3.2.69 boost.admin.inc
--- boost.admin.inc	6 Sep 2009 23:00:48 -0000	1.1.2.1.2.3.2.69
+++ boost.admin.inc	18 Sep 2009 15:03:43 -0000
@@ -16,31 +16,71 @@
  *   in boost.module
  */
 function boost_admin_performance_page($form = array()) {
-  // Clear old settings
-  unset($form['cache']);
-  unset($form['cache_lifetime']);
-
-  // Set text
-  $description_core = '<p>'. t("The normal cache mode is suitable for most sites and does not cause any side effects. The aggressive cache mode causes Drupal to skip the loading (boot) and unloading (exit) of enabled modules when serving a cached page. This results in an additional performance boost but can cause unwanted side effects.") .'</p>';
-  $problem_modules = array_unique(array_merge(module_implements('boot'), module_implements('exit')));
-  sort($problem_modules);
-  if (count($problem_modules) > 0) {
-    $description_core .= '<p>'. t('<strong class="error">The following enabled modules are incompatible with aggressive mode caching and will probably not function properly: %modules</strong>', array('%modules' => implode(', ', $problem_modules))) .'.</p>';
+  $form['#title'] = t('Anonymous page caching');
+  $form['page_compression']['#title'] = t('Gzip page compression (Boost & Core)');
+  $form['#description'] = t('Enabling the page cache will offer a significant performance boost. Drupal can store and send compressed cached pages requested by <em>anonymous</em> users. By caching the first request to the page, Drupal does not have to construct the page each time it is viewed. The page must first be visited by an anonymous user in order for the cache to work on subsequent requests for that page. Boost & Core caching do not work for logged in users.');
+  $form['boost_core_clear'] = array(
+    '#type' => 'submit',
+    '#value' => t('Clear core page cached data: !count pages', array('!count' => boost_count_core_db())),
+    '#submit' => array('boost_clear_core_page_cache_submit'),
+  );
+
+  return $form;
+}
+
+/**
+ * Process system_themes_form form submissions.
+ */
+function boost_admin_performance_page_submit($form, &$form_state) {
+  variable_del('boost_previously');
+  extract($form_state['values'], EXTR_SKIP | EXTR_REFS);
+
+  if (empty($boost_enabled) && !empty($boost_previously)) { // the cache was previously enabled
+    variable_set('boost_ignore_flush', 0);
+    if (boost_cache_clear_all()) {
+      drupal_set_message(t('Boost: Static page cache cleared.'));
+    }
+  }
+  else if ($boost_ignore_flush == 0 && (variable_get('preprocess_css', FALSE)==TRUE || variable_get('preprocess_js', FALSE)==TRUE)) {
+    if (boost_cache_clear_all()) {
+      drupal_set_message(t('Boost: Static page cache cleared.'), 'warning');
+    }
+  }
+}
+
+/**
+ * Submit callback; clear system caches.
+ */
+function boost_admin_clear_cache_submit($form, &$form_state) {
+  drupal_flush_all_caches();
+  if (boost_cache_clear_all()) {
+    drupal_set_message(t('Static page cache (boost) and all other caches cleared.'));
   }
   else {
-    $description_core .= '<p>'. t('<strong class="ok">Currently, all enabled modules are compatible with the aggressive caching policy.</strong> Please note, if you use aggressive caching and enable new modules, you will need to check this page again to ensure compatibility.') .'</p>';
+    drupal_set_message(
+      t('Boost: Static page cache NOT cleared. To clear Boosts cache set "Ignore cache flushing:" to \'Disabled\' in the <a href="@link">boost advanced settings</a> & try again.', array('@link' => url('admin/settings/performance/boost', array('fragment' => 'edit-boost-ignore-flush-0-wrapper')))), 'warning');
+    drupal_set_message(t('All other caches cleared.'));
   }
+}
+
+/**
+ * Form builder; Displays Boost's configuration page.
+ *
+ * @see system_settings_form()
+ *
+ * TODO: Cacheability settings use core code. Look at Blocks.
+ *  http://drupal.org/node/337756
+ */
+function boost_admin_boost_performance_page() {
+  Global $base_path;
+
   $period = drupal_map_assoc(array(0, 60, 180, 300, 600, 900, 1800, 2700, 3600, 10800, 21600, 32400, 43200, 64800, 86400, 2*86400, 3*86400, 4*86400, 5*86400, 6*86400, 604800, 2*604800, 3*604800, 4*604800, 8*604800, 16*604800, 52*604800), 'format_interval');
   $period[0] = '<' . t('none') . '>';
 
-  // Take over the relevant existing settings
-  $form['page_compression']['#title'] = t('Gzip page compression (Boost & Core)');
-
   $form['boost'] = array(
     '#type'          => 'fieldset',
     '#title'         => t('Boost File Cache'),
   );
-  // Inject Boost-specific settings
   $form['boost']['boost_enabled'] = array(
     '#type'          => 'radios',
     '#title'         => t('Boost - Static page cache'),
@@ -108,84 +148,6 @@ function boost_admin_performance_page($f
     '#submit' => array('boost_clear_expired_cache_submit'),
   );
 
-  // Alter core page cache settings.
-  $form['core'] = array(
-    '#type'          => 'fieldset',
-    '#title'         => t('Core Database Cache'),
-  );
-  $form['core']['cache'] = array(
-    '#type'           => 'radios',
-    '#title'          => t('Core - Database page cache'),
-    '#default_value'  => variable_get('cache', CACHE_DISABLED),
-    '#options'        =>  array(
-      CACHE_DISABLED => t('Disabled'),
-      CACHE_NORMAL => t('Normal (recommended for production sites, no side effects)'),
-      CACHE_AGGRESSIVE => t('Aggressive (experts only, possible side effects)'),
-    ),
-    '#description'    => t("If boost can not or will not cache the page, then the database will try to cache it. If boost can cache the page then it will not appear in the database cache. This is the standard Drupal cache.") . $description_core,
-  );
-  $form['core']['cache_lifetime'] = array(
-    '#type' => 'select',
-    '#title' => t('Core - Default minimum cache lifetime'),
-    '#default_value' => variable_get('cache_lifetime', 0),
-    '#options' => $period,
-    '#description' => t('On high-traffic sites, it may be necessary to enforce a minimum cache lifetime. The minimum cache lifetime is the minimum amount of time that will elapse before the cache is emptied and recreated, and is applied to both page and block caches. A larger minimum cache lifetime offers better performance, but users will not see new content for a longer period of time.')
-  );
-  $form['core']['boost_core_clear'] = array(
-    '#type' => 'submit',
-    '#value' => t('Clear core page cached data: !count pages', array('!count' => boost_count_core_db())),
-    '#submit' => array('boost_clear_core_page_cache_submit'),
-  );
-
-  return $form;
-}
-
-/**
- * Process system_themes_form form submissions.
- */
-function boost_admin_performance_page_submit($form, &$form_state) {
-  variable_del('boost_previously');
-  extract($form_state['values'], EXTR_SKIP | EXTR_REFS);
-
-  if (empty($boost_enabled) && !empty($boost_previously)) { // the cache was previously enabled
-    variable_set('boost_ignore_flush', 0);
-    if (boost_cache_clear_all()) {
-      drupal_set_message(t('Boost: Static page cache cleared.'));
-    }
-  }
-  else if ($boost_ignore_flush == 0 && (variable_get('preprocess_css', FALSE)==TRUE || variable_get('preprocess_js', FALSE)==TRUE)) {
-    if (boost_cache_clear_all()) {
-      drupal_set_message(t('Boost: Static page cache cleared.'), 'warning');
-    }
-  }
-}
-
-/**
- * Submit callback; clear system caches.
- */
-function boost_admin_clear_cache_submit($form, &$form_state) {
-  drupal_flush_all_caches();
-  if (boost_cache_clear_all()) {
-    drupal_set_message(t('Static page cache (boost) and all other caches cleared.'));
-  }
-  else {
-    drupal_set_message(
-      t('Boost: Static page cache NOT cleared. To clear Boosts cache set "Ignore cache flushing:" to \'Disabled\' in the <a href="@link">boost advanced settings</a> & try again.', array('@link' => url('admin/settings/performance/boost', array('fragment' => 'edit-boost-ignore-flush-0-wrapper')))), 'warning');
-    drupal_set_message(t('All other caches cleared.'));
-  }
-}
-
-/**
- * Form builder; Displays Boost's configuration page.
- *
- * @see system_settings_form()
- *
- * TODO: Cacheability settings use core code. Look at Blocks.
- *  http://drupal.org/node/337756
- */
-function boost_admin_boost_performance_page() {
-  Global $base_path;
-
   // Cacheability settings
   $options = array(t('Cache every page except the listed pages.'), t('Cache only the listed pages.'));
   $description = t("Enter one page per line as Drupal paths. The '*' character is a wild-card. Example paths are '%blog' for the blog page and %blog-wild-card for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wild-card' => 'blog/*', '%front' => '<front>'));
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.43
diff -u -p -r1.2.2.1.2.3.2.43 boost.install
--- boost.install	7 Sep 2009 08:02:59 -0000	1.2.2.1.2.3.2.43
+++ boost.install	18 Sep 2009 15:03:44 -0000
@@ -154,7 +154,7 @@ function boost_requirements($phase) {
       if (!BOOST_ENABLED) {
           $requirements['boost_is_enabled'] = array(
             'title'       => $t('Boost'),
-            'description' => $t('Boost is disabled. <a href="@performance">Enable</a> it.', array('@performance' => url('admin/settings/performance'))),
+            'description' => $t('Boost is disabled. <a href="@performance">Enable</a> it.', array('@performance' => url('admin/settings/performance/boost'))),
             'severity'    => REQUIREMENT_WARNING,
             'value'       => $t('Boost Disabled'),
           );
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.140
diff -u -p -r1.3.2.2.2.5.2.140 boost.module
--- boost.module	12 Sep 2009 06:03:03 -0000	1.3.2.2.2.5.2.140
+++ boost.module	18 Sep 2009 15:03:44 -0000
@@ -254,8 +254,6 @@ function boost_form_alter(&$form, $form_
     case 'system_performance_settings':
       module_load_include('inc', 'boost', 'boost.admin');
       $form['page_cache'] = boost_admin_performance_page($form['page_cache']);
-      $form['page_cache']['#title'] = t('Anonymous page caching');
-      $form['page_cache']['#description'] = t('Enabling the page cache will offer a significant performance boost. Drupal can store and send compressed cached pages requested by <em>anonymous</em> users. By caching the first request to the page, Drupal does not have to construct the page each time it is viewed. The page must first be visited by an anonymous user in order for the cache to work on subsequent requests for that page. Boost & Core caching do not work for logged in users.');
       $form['#submit'][] = 'boost_admin_performance_page_submit';
       $form['clear_cache']['clear']['#submit'][0] = 'boost_admin_clear_cache_submit';
       break;
