function rules_admin_settings_cache_rebuild_submit

Form submit callback: Rebuild the Rules' cache.

1 string reference to 'rules_admin_settings_cache_rebuild_submit'
rules_admin_settings_advanced in rules_admin/rules_admin.inc
Advanced settings form.

File

rules_admin/rules_admin.inc, line 297

Code

function rules_admin_settings_cache_rebuild_submit($form, &$form_state) {
    $start = microtime(TRUE);
    rules_clear_cache();
    // Manually trigger cache rebuilding of all caches.
    rules_get_cache();
    _rules_rebuild_component_cache();
    RulesEventSet::rebuildEventCache();
    drupal_set_message(t('Rules cache rebuilt in %duration seconds.', array(
        '%duration' => round(microtime(TRUE) - $start, 2),
    )));
}