From 43893763c52d47529c7c3c1dafb548c9dd4d1e20 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 6 Oct 2008 23:02:08 +0000 Subject: #226728 by chx and Eaton: Flush form caches when cache is cleared on cron. --- modules/system/system.module | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/system/system.module') 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); + } } /** -- cgit v1.2.3