cvs diff: Diffing .
? .project
Index: masquerade.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/masquerade/masquerade.module,v
retrieving revision 1.16.2.17
diff -u -p -r1.16.2.17 masquerade.module
--- masquerade.module	6 Aug 2009 19:42:09 -0000	1.16.2.17
+++ masquerade.module	6 Aug 2009 19:44:59 -0000
@@ -203,6 +203,12 @@ function masquerade_admin_settings_submi
     $masquerade_uids[] = $u->uid;
   }
   $form_state['values']['masquerade_quick_switches'] = $masquerade_uids;
+
+  // We need to clear the block cache so any changes to the "Quick Switch" list
+  // are updated.
+  cache_clear_all('masquerade', 'cache_block', TRUE);
+
+  // Rebuild the menu system so the menu "Quick Switch" user is updated.
   menu_rebuild();
 }
 
@@ -256,6 +262,7 @@ function masquerade_block($op = 'list', 
   switch ($op) {
     case 'list':
       $blocks[0]['info'] =  t('Masquerade');
+      $blocks[0]['cache'] = BLOCK_CACHE_PER_USER;
       return $blocks;
     case 'view':
       if (masquerade_access('autocomplete')) {
