You are here

public function RulesContainerPlugin::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 RulesPlugin::resetInternalCache

See also

RulesPlugin::availableVariables()

2 calls to RulesContainerPlugin::resetInternalCache()
Rule::resetInternalCache in includes/rules.plugins.inc
Resets any internal static caches.
RulesContainerPlugin::sortChildren in includes/rules.core.inc
Sorts all child elements by their weight.
1 method overrides RulesContainerPlugin::resetInternalCache()
Rule::resetInternalCache in includes/rules.plugins.inc
Resets any internal static caches.

File

includes/rules.core.inc, line 2478
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function resetInternalCache() {
  $this->availableVariables = NULL;
  foreach ($this->children as $child) {
    $child
      ->resetInternalCache();
  }
}