diff options
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 786e560fa..4bb1129bd 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -574,11 +574,6 @@ function _system_is_incompatible(&$incompatible, $files, $file) { * The form array. */ function system_modules($form_state = array()) { - // Clear all caches. - registry_rebuild(); - drupal_theme_rebuild(); - node_types_rebuild(); - cache_clear_all('schema', 'cache'); // Get current list of modules. $files = system_get_module_data(); @@ -931,6 +926,11 @@ function system_modules_submit($form, &$form_state) { drupal_set_message(t('The configuration options have been saved.')); } + // Clear all caches. + registry_rebuild(); + drupal_theme_rebuild(); + node_types_rebuild(); + cache_clear_all('schema', 'cache'); drupal_clear_css_cache(); drupal_clear_js_cache(); |