? profiler_flush_all_caches.patch
Index: profiler_api.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/profiler/profiler_api.inc,v
retrieving revision 1.1
diff -u -p -r1.1 profiler_api.inc
--- profiler_api.inc	30 Aug 2010 16:30:34 -0000	1.1
+++ profiler_api.inc	30 Aug 2010 16:52:43 -0000
@@ -122,9 +122,7 @@ function profiler_profile_tasks($config,
     module_rebuild_cache(); // Detects the newly added bootstrap modules
     node_access_rebuild();
     drupal_get_schema('system', TRUE); // Clear schema DB cache
-    system_theme_data();
-    drupal_rebuild_theme_registry();
-    node_types_rebuild();
+    drupal_flush_all_caches();
 
     // Disable all DB blocks
     db_query("UPDATE {blocks} SET status = 0, region = ''");
