? boost-493764.patch
? boost-493842.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.29
diff -u -p -r1.1.2.1.2.3.2.29 boost.admin.inc
--- boost.admin.inc	13 Jun 2009 10:14:16 -0000	1.1.2.1.2.3.2.29
+++ boost.admin.inc	17 Jun 2009 14:42:32 -0000
@@ -133,6 +133,12 @@ function boost_admin_settings($form = ar
     '#maxlength'     => 255,
     '#description'   => t('If you are synchronizing the generated static cache files to an external server through some means such as SFTP or rsync, you can enter a shell command to be executed following a successful cron-triggered cache update. Note that this is an advanced setting that should normally be left blank.'),
   ); */
+   $form['advanced']['boost_cache_query'] = array(
+     '#type'          => 'checkbox',
+     '#title'         => t('Cache pages that contain URL Variables'),
+     '#default_value' => BOOST_CACHE_QUERY,
+     '#description'   => t('Boost will cache pages that end with ?page=1 among others.'),
+   );
    $form['advanced']['boost_cache_xml'] = array(
      '#type'          => 'checkbox',
      '#title'         => t('Cache .xml & /feed'),
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.55
diff -u -p -r1.3.2.2.2.5.2.55 boost.module
--- boost.module	13 Jun 2009 10:14:16 -0000	1.3.2.2.2.5.2.55
+++ boost.module	17 Jun 2009 14:42:32 -0000
@@ -33,6 +33,7 @@ define('BOOST_FLUSH_DIR',            var
 define('BOOST_CACHE_XML',            variable_get('boost_cache_xml', TRUE));
 define('BOOST_CACHE_LIFETIME',       variable_get('boost_cache_lifetime', 3600));
 define('BOOST_TIME',                 time());
+define('BOOST_CACHE_QUERY',          variable_get('boost_cache_query', 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):
@@ -481,6 +482,9 @@ function boost_is_cacheable($path) {
   if (!BOOST_CACHE_XML && (preg_match('!/feed$!', $normal_path) || preg_match('!\.xml$!', $normal_path))) {
     return FALSE;
   }
+  if (!BOOST_CACHE_QUERY && $GLOBALS['_boost_query'] != '_') {
+    return FALSE;
+  }
 
   // Match the user's cacheability settings against the path
   if (BOOST_CACHEABILITY_OPTION == 2) {
