diff --git a/registry_rebuild.drush.inc b/registry_rebuild.drush.inc
index c67b859..5937207 100644
--- a/registry_rebuild.drush.inc
+++ b/registry_rebuild.drush.inc
@@ -137,7 +137,7 @@
   drush_log(dt('Doing registry_rebuild() in DRUPAL_BOOTSTRAP_FULL.'));
 
   if (!drush_get_option('no-cache-clear')) {
-    db_truncate('cache');
+    cache_clear_all('*', 'cache', TRUE);
     drush_log(dt('The cache table truncated in DRUPAL_BOOTSTRAP_FULL.'));
   }
   if (drush_get_option('fire-bazooka')) {
