Index: update.php
===================================================================
RCS file: /cvs/drupal/drupal/update.php,v
retrieving revision 1.210
diff -u -p -r1.210 update.php
--- update.php	19 Dec 2006 09:50:55 -0000	1.210
+++ update.php	25 Dec 2006 06:43:46 -0000
@@ -439,9 +439,13 @@ function update_do_updates() {
     $percentage = 100;
   }
 
-  // When no updates remain, clear the cache.
+  // When no updates remain, clear the caches in case the data has been updated.
   if (!isset($update['module'])) {
-    db_query('DELETE FROM {cache}');
+    cache_clear_all('*', 'cache', TRUE);
+    cache_clear_all('*', 'cache_page', TRUE);
+    cache_clear_all('*', 'cache_menu', TRUE);
+    cache_clear_all('*', 'cache_filter', TRUE);
+    drupal_clear_css_cache();
   }
 
   return array($percentage, isset($update['module']) ? 'Updating '. $update['module'] .' module' : 'Updating complete');
@@ -785,9 +789,6 @@ if (($access_check == FALSE) || ($user->
   update_fix_watchdog();
   update_fix_sessions();
 
-  // Clear any cached CSS files, in case any module updates its CSS as well.
-  drupal_clear_css_cache();
-
   $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : '';
   switch ($op) {
     case 'Update':
