You are here

public function BusinessRulesProcessor::__destruct in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Util/BusinessRulesProcessor.php \Drupal\business_rules\Util\BusinessRulesProcessor::__destruct()

Destructor.

File

src/Util/BusinessRulesProcessor.php, line 753

Class

BusinessRulesProcessor
Class BusinessRulesProcessor.

Namespace

Drupal\business_rules\Util

Code

public function __destruct() {
  $keyvalue = $this->util
    ->getKeyValueExpirable('process');
  $keyvalue
    ->deleteAll();
  if ($this->config
    ->get('clear_render_cache')) {
    Cache::invalidateTags([
      'rendered',
    ]);
  }
}