You are here

function rules_clear_cache in Rules 6

Same name and namespace in other branches
  1. 7.2 rules.module \rules_clear_cache()

Clears the rule set cache

Parameters

$immediate If FALSE, the static cache will be kept until the next page load.: Might be dangerous, so only use if you know what you are doing.

12 calls to rules_clear_cache()
rules_admin_form_add_rule_submit in rules_admin/rules_admin.rule_forms.inc
rules_admin_form_import_submit in rules_admin/rules_admin.export.inc
rules_admin_import_workflow_ng in rules_admin/rules_admin.export.inc
Tries to import workflow-ng rules.
rules_admin_install in rules_admin/rules_admin.install
Implementation of hook_install().
rules_admin_item_form_delete_submit in rules_admin/rules_admin.sets.inc

... See full list

File

rules/rules.module, line 223
Rules engine module

Code

function rules_clear_cache($immediate = TRUE) {
  cache_clear_all('*', 'cache_rules', TRUE);
  variable_del('rules_inactive_sets');
  if ($immediate) {
    rules_get_rule_set(NULL, TRUE);
    rules_gather_data('', 'all', FALSE, TRUE);
    rules_get_configured_items(NULL, TRUE);
  }
}