diff --git a/includes/common.inc b/includes/common.inc
index a05a09a..f72257c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -7147,11 +7147,6 @@ function drupal_flush_all_caches() {
   system_rebuild_theme_data();
   drupal_theme_rebuild();
 
-  node_types_rebuild();
-  // node_menu() defines menu items based on node types so it needs to come
-  // after node types are rebuilt.
-  menu_rebuild();
-
   // Synchronize to catch any actions that were added or removed.
   actions_synchronize();
 
@@ -7163,6 +7158,12 @@ function drupal_flush_all_caches() {
     cache($bin)->flush();
   }
 
+  entity_info_cache_clear();
+  node_types_rebuild();
+  // node_menu() defines menu items based on node types so it needs to come
+  // after node types are rebuilt.
+  menu_rebuild();
+
   // Rebuild the bootstrap module list. We do this here so that developers
   // can get new hook_boot() implementations registered without having to
   // write a hook_update_N() function.
