You are here

public function RulesConditionalCase::resetInternalCache in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RulesConditionalCase::resetInternalCache()

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_conditional.plugin.inc, line 368
Rules plugin implementation.

Class

RulesConditionalCase
Switch case.

Code

public function resetInternalCache() {
  parent::resetInternalCache();
  $this->condition = NULL;
  $this->conditionResultCache = array();
}