diff --git a/commands/core/drupal/update.inc b/commands/core/drupal/update.inc
index 2a7f9e5..6411da1 100644
--- a/commands/core/drupal/update.inc
+++ b/commands/core/drupal/update.inc
@@ -158,7 +158,7 @@ function update_main_prepare() {
   // Load module basics.
   include_once $core . '/includes/module.inc';
   $module_list['system']['filename'] = 'modules/system/system.module';
-  module_list(TRUE, FALSE, FALSE, $module_list);
+  module_list(NULL, $module_list);
   drupal_load('module', 'system');
 
   // Reset the module_implements() cache so that any new hook implementations
@@ -196,7 +196,7 @@ function update_main_prepare() {
   _drupal_flush_css_js();
   // Flush the cache of all data for the update status module.
   if (db_table_exists('cache_update')) {
-    cache_clear_all('*', 'cache_update', TRUE);
+    cache('cache_update')->flush();
   }
 
   module_implements_reset();
