? boost-177845.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.262
diff -u -p -r1.3.2.2.2.5.2.262 boost.module
--- boost.module	28 Nov 2009 07:59:34 -0000	1.3.2.2.2.5.2.262
+++ boost.module	29 Nov 2009 08:55:52 -0000
@@ -804,8 +804,6 @@ function boost_taxonomy($op, $type, $ter
  * Implementation of hook_user(). Acts on user account actions.
  */
 function boost_user($op, &$edit, &$account, $category = NULL) {
-  if (!BOOST_ENABLED) return;
-
   global $user;
   switch ($op) {
     case 'login':
@@ -818,6 +816,9 @@ function boost_user($op, &$edit, &$accou
       boost_set_cookie(0);
       break;
     case 'delete':
+      if (!BOOST_ENABLED) {
+        return;
+      }
       // Expire the relevant user page from the static page cache to prevent serving stale content:
       if (!empty($account->uid)) {
         if (BOOST_NO_DATABASE) {
