? boost-178914.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.14
diff -u -p -r1.1.2.1.2.3.2.14 boost.admin.inc
--- boost.admin.inc	1 May 2009 23:13:31 -0000	1.1.2.1.2.3.2.14
+++ boost.admin.inc	6 May 2009 03:01:30 -0000
@@ -124,6 +124,12 @@ function boost_admin_settings($form = ar
     '#default_value' => BOOST_ONLY_ASCII_PATH,
     '#description'   => t('Only allowing ACSII characters is a safe way to cache pages. It severely limits i18n support so this can be turned off. Fair warning, disabling this may cause "page not found" errors depending on your url structure (spaces are bad, ect...). If you follow RFC 3986 you should be ok.'),
   );
+  $form['advanced']['boost_clear_cache_offline'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Clear Boosts cache when site goes offline'),
+    '#default_value' => BOOST_CLEAR_CACHE_OFFLINE,
+    '#description'   => t('Under site maintenance when the status is set to offline, boost clears its cache. If you do not want this to happen, clear this checkbox. Pages that are not cached will still send out a Site off-line message, so be smart if turning this off.'),
+  );
 
   return $form;
 }
@@ -168,8 +174,10 @@ function boost_admin_clear_cache_submit(
 
 function boost_admin_site_offline_submit($form, &$form_state) {
   if (!empty($form_state['values']['site_offline'])) {
-    if (boost_cache_clear_all()) {
-      drupal_set_message(t('Static page cache cleared.'));
+    if (BOOST_CLEAR_CACHE_OFFLINE) {
+      if (boost_cache_clear_all()) {
+        drupal_set_message(t('Static page cache cleared.'));
+      }
     }
   }
 }
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.34
diff -u -p -r1.3.2.2.2.5.2.34 boost.module
--- boost.module	2 May 2009 20:36:39 -0000	1.3.2.2.2.5.2.34
+++ boost.module	6 May 2009 03:01:30 -0000
@@ -24,6 +24,8 @@ define('BOOST_CRON_LIMIT',           var
 define('BOOST_ONLY_ASCII_PATH',      variable_get('boost_only_ascii_path', TRUE));
 define('BOOST_GZIP',                 variable_get('boost_gzip', TRUE));
 define('BOOST_GZIP_FILE_PATH',       str_replace(BOOST_ROOT_CACHE_PATH . '/', BOOST_ROOT_CACHE_PATH . '/gz/', BOOST_FILE_PATH));
+define('BOOST_CLEAR_CACHE_OFFLINE',  variable_get('boost_clear_cache_offline', TRUE));
+
 
 // This cookie is set for all authenticated users, so that they can be
 // excluded from caching (or in the future get a user-specific cached page):
