function rules_clear_cache in Rules 7.2
Same name and namespace in other branches
- 6 rules/rules.module \rules_clear_cache()
Clears the rule set cache.
9 calls to rules_clear_cache()
- RulesEvaluationException::__construct in includes/
rules.core.inc - Constructor.
- RulesPlugin::delete in includes/
rules.core.inc - Deletes configuration from database.
- RulesPlugin::save in includes/
rules.core.inc - Saves the configuration to the database.
- RulesPluginUI::buildContent in ui/
ui.core.inc - Implements RulesPluginUIInterface.
- RulesTestCase::testDependencies in tests/
rules.test - Tests handling dependencies.
File
- ./
rules.module, line 504 - Rules engine module.
Code
function rules_clear_cache() {
cache_clear_all('*', 'cache_rules', TRUE);
drupal_static_reset('rules_get_cache');
drupal_static_reset('rules_fetch_data');
drupal_static_reset('rules_config_update_dirty_flag');
entity_get_controller('rules_config')
->resetCache();
}