You are here

public function RulesConditionalPredicateElement::resetInternalCache in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::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()

1 call to RulesConditionalPredicateElement::resetInternalCache()
RulesConditionalPredicateElement::setPredicate in includes/rules_conditional.core.inc
Sets a condition as predicate.

File

includes/rules_conditional.core.inc, line 420
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function resetInternalCache() {
  parent::resetInternalCache();
  if (isset($this->predicate)) {
    $this->predicate
      ->resetInternalCache();
  }
}