diff options
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index be9c63001..d5de2f811 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1243,16 +1243,12 @@ function system_modules_submit($form, &$form_state) { drupal_set_message(t('The configuration options have been saved.')); } - // Clear all caches. - registry_rebuild(); - system_rebuild_theme_data(); - drupal_theme_rebuild(); - node_types_rebuild(); - menu_rebuild(); - cache_clear_all('schema', 'cache'); + // Clear all caches. We need to invoke drupal_flush_all_caches() to ensure + // that also dependent caches are flushed, e.g. the filter cache and field + // cache, and also registered themes are rebuilt, since modules can also + // register themes. + drupal_flush_all_caches(); entity_info_cache_clear(); - drupal_clear_css_cache(); - drupal_clear_js_cache(); $form_state['redirect'] = 'admin/modules'; @@ -1263,8 +1259,6 @@ function system_modules_submit($form, &$form_state) { // Synchronize to catch any actions that were added or removed. actions_synchronize(); - - return; } /** |