Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.917
diff -u -p -r1.917 common.inc
--- includes/common.inc	3 Jun 2009 02:50:21 -0000	1.917
+++ includes/common.inc	5 Jun 2009 03:04:29 -0000
@@ -4525,6 +4525,10 @@ function drupal_flush_all_caches() {
   registry_rebuild();
   drupal_clear_css_cache();
   drupal_clear_js_cache();
+  
+  if (module_exists('color')) {
+    color_flush_css_cache();
+  }
 
   // If invoked from update.php, we must not update the theme information in the
   // database, or this will result in all themes being disabled.
Index: modules/color/color.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/color/color.module,v
retrieving revision 1.59
diff -u -p -r1.59 color.module
--- modules/color/color.module	27 May 2009 18:33:55 -0000	1.59
+++ modules/color/color.module	5 Jun 2009 03:04:30 -0000
@@ -376,6 +376,23 @@ function color_scheme_form_submit($form,
 }
 
 /**
+ * Flushes the color module's cache of rewritten CSS files. Called by
+ * drupal_flush_all_caches() if color.module is enabled.
+ */
+function color_flush_css_cache() {
+  $current_theme = variable_get('theme_default','none');
+  if (color_get_info($current_theme)) {
+    $form_state = array();
+    $form_state['values']['op'] = t('Save configuration');
+    module_load_include('inc', 'system', 'system.admin');
+    $temp_q = $_GET['q'];
+    $_GET['q'] = 'admin/build/themes/settings/'. $current_theme;
+    drupal_execute('system_theme_settings', $form_state, $current_theme);
+    $_GET['q'] = $temp_q;
+  }
+}
+
+/**
  * Rewrite the stylesheet to match the colors in the palette.
  */
 function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) {
