? boost-1.patch
? boost-538418.patch
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.24
diff -u -p -r1.2.2.1.2.3.2.24 boost.install
--- boost.install	1 Aug 2009 02:33:39 -0000	1.2.2.1.2.3.2.24
+++ boost.install	3 Aug 2009 05:53:44 -0000
@@ -290,6 +290,13 @@ function boost_update_6100() {
         'not null' => TRUE,
         'default' => '',
       ),
+      'url' => array(
+        'description' => 'URL of cached page',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => '',
+      ),
       'expire' => array(
         'description' => t('UNIX timestamp for the expiration date of cached page.'),
         'type' => 'int',
@@ -474,7 +481,7 @@ function boost_update_6103() {
  */
 function boost_update_6104() {
   $ret = array();
-  // Add in mime_type column
+  // Add in extension column
   db_add_field($ret, 'boost_cache', 'extension', array(
         'description' => 'File Extension/Mime content type of this page.',
         'type' => 'varchar',
@@ -493,4 +500,20 @@ function boost_update_6104() {
   db_add_index($ret, 'boost_cache_settings', 'extension', array('extension'));
 
   return $ret;
-}
\ No newline at end of file
+}
+
+/**
+ * Update 6105 - Add new column to boost_cache table
+ *  Add in url column
+ */
+function boost_update_6105() {
+  $ret = array();
+  db_add_field($ret, 'boost_cache', 'url', array(
+        'description' => 'URL of cached page',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => '',
+      ));
+  return $ret;
+}
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.84
diff -u -p -r1.3.2.2.2.5.2.84 boost.module
--- boost.module	31 Jul 2009 09:49:23 -0000	1.3.2.2.2.5.2.84
+++ boost.module	3 Aug 2009 05:53:45 -0000
@@ -1193,9 +1193,11 @@ function boost_db_prep($filename, $exten
  *   Filename extension: Used for content types.
  */
 function boost_put_db($filename, $expire, $lifetime, $push, $router_item, $timer, $timer_average, $extension) {
-  db_query("UPDATE {boost_cache} SET expire = %d, lifetime = %d, push = %d, page_callback = '%s', page_arguments = '%s', timer = %d, timer_average = %d, base_dir = '%s', page_id = %d, extension = '%s' WHERE filename = '%s'", $expire, $lifetime, $push, $router_item['page_callback'], $router_item['page_arguments'], $timer, $timer_average, BOOST_FILE_PATH, $router_item['page_id'], $extension, $filename);
+  global $base_root;
+  $url = $base_root . request_uri();
+  db_query("UPDATE {boost_cache} SET expire = %d, lifetime = %d, push = %d, page_callback = '%s', page_arguments = '%s', timer = %d, timer_average = %d, base_dir = '%s', page_id = %d, extension = '%s', url = '%s' WHERE filename = '%s'", $expire, $lifetime, $push, $router_item['page_callback'], $router_item['page_arguments'], $timer, $timer_average, BOOST_FILE_PATH, $router_item['page_id'], $extension, $url, $filename);
   if (!db_affected_rows()) {
-    @db_query("INSERT INTO {boost_cache} (filename, expire, lifetime, push, page_callback, page_arguments, timer, timer_average, base_dir, page_id, extension) VALUES ('%s', %d, %d, %d, '%s', '%s', %d, %d, '%s', %d, '%s')", $filename, $expire, $lifetime, $push, $router_item['page_callback'], $router_item['page_arguments'], $timer, $timer_average, BOOST_FILE_PATH, $router_item['page_id'], $extension);
+    @db_query("INSERT INTO {boost_cache} (filename, expire, lifetime, push, page_callback, page_arguments, timer, timer_average, base_dir, page_id, extension, url) VALUES ('%s', %d, %d, %d, '%s', '%s', %d, %d, '%s', %d, '%s', '%s')", $filename, $expire, $lifetime, $push, $router_item['page_callback'], $router_item['page_arguments'], $timer, $timer_average, BOOST_FILE_PATH, $router_item['page_id'], $extension, $url);
   }
 }
 
