summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-06 23:02:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-06 23:02:08 +0000
commit43893763c52d47529c7c3c1dafb548c9dd4d1e20 (patch)
treec7f29f03fc217a368b226a8c70d7193754d5404a /modules/system/system.module
parent6560a8206ee2b2294febe59a16b4aa3f6e090ac4 (diff)
downloadbrdo-43893763c52d47529c7c3c1dafb548c9dd4d1e20.tar.gz
brdo-43893763c52d47529c7c3c1dafb548c9dd4d1e20.tar.bz2
#226728 by chx and Eaton: Flush form caches when cache is cleared on cron.
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);
+ }
}
/**