Skip to content
Snippets Groups Projects
Commit 43893763 authored by Angie Byron's avatar Angie Byron
Browse files

#226728 by chx and Eaton: Flush form caches when cache is cleared on cron.

parent 6560a820
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment