summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 39019fe78..e4d9abea0 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1412,6 +1412,11 @@ function system_cron() {
}
db_query('DELETE FROM {files} WHERE fid = %d', $file->fid);
}
+ $core = array('cache', 'cache_block', 'cache_filter', 'cache_page', 'cache_form', 'cache_menu');
+ $cache_tables = array_merge(module_invoke_all('flush_caches'), $core);
+ foreach ($cache_tables as $table) {
+ cache_clear_all(NULL, $table);
+ }
}
/**