You are here

public function Rule::resetInternalCache in Rules 7.2

Resets any internal static caches.

This function does not reset regular caches as retrieved via rules_get_cache(). Usually, it's invoked automatically when a Rules configuration is modified.

Static caches are reset for the element and any elements down the tree. To clear static caches of the whole configuration, invoke the function at the root.

Overrides RulesContainerPlugin::resetInternalCache

See also

RulesPlugin::availableVariables()

File

includes/rules.plugins.inc, line 370
Contains plugin info and implementations not needed for rule evaluation.

Class

Rule
An actual rule.

Code

public function resetInternalCache() {
  parent::resetInternalCache();
  $this->conditions
    ->resetInternalCache();
}