diff --git a/includes/common.inc b/includes/common.inc
index f265a5c..605a974 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -7422,6 +7422,9 @@ function drupal_flush_all_caches() {
     cache_clear_all('*', $table, TRUE);
   }
 
+  // Let other modules know that all caches have been cleared.
+  module_invoke_all('all_caches_flushed');
+
   // 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.
