TermStorage::resetCache

public TermStorage::resetCache(array $ids = NULL)

Resets the internal, static entity cache.

Parameters

$ids: (optional) If specified, the cache is reset for the entities with the given ids only.

Overrides ContentEntityStorageBase::resetCache

File

core/modules/taxonomy/src/TermStorage.php, line 81

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

public function resetCache(array $ids = NULL) {
  drupal_static_reset('taxonomy_term_count_nodes');
  $this->parents = array();
  $this->parentsAll = array();
  $this->children = array();
  $this->treeChildren = array();
  $this->treeParents = array();
  $this->treeTerms = array();
  $this->trees = array();
  parent::resetCache($ids);
}
doc_Drupal
2016-10-29 09:47:23
Comments
Leave a Comment

Please login to continue.