function RulesContainerPlugin::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 RulesPlugin::resetInternalCache
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 2498
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();
}
}