diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-14 20:53:16 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-14 20:53:16 +0000 |
commit | 3472adb2ca21c815ff0fdbc63e21b03029fc051c (patch) | |
tree | c0989c3ad4bae4839bbcee42d5abfb9fb3fd939f /modules/system/system.admin.inc | |
parent | d76ec8f1d0c97ddbb67081bf6ed302e160ef879c (diff) | |
download | brdo-3472adb2ca21c815ff0fdbc63e21b03029fc051c.tar.gz brdo-3472adb2ca21c815ff0fdbc63e21b03029fc051c.tar.bz2 |
#193366 by Anthony Hersey: Move various rebuild functions to module page submission rather than viewing for vastly increased performance.
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(); |