You are here

class CacheInvalidator in Permissions by Term 8.2

Hierarchy

Expanded class hierarchy of CacheInvalidator

1 string reference to 'CacheInvalidator'
permissions_by_term.services.yml in ./permissions_by_term.services.yml
permissions_by_term.services.yml
1 service uses CacheInvalidator
permissions_by_term.cache_invalidator in ./permissions_by_term.services.yml
Drupal\permissions_by_term\Cache\CacheInvalidator

File

src/Cache/CacheInvalidator.php, line 7

Namespace

Drupal\permissions_by_term\Cache
View source
class CacheInvalidator {

  /**
   * @var Cache
   */
  private $cache;
  public function __construct(Cache $cache) {
    $this->cache = $cache;
  }
  public function invalidate() : void {
    $this->cache::invalidateTags([
      'search_index:node_search',
      'permissions_by_term:access_result_cache',
      'permissions_by_term:key_value_cache',
    ]);
  }

}

Members