taxonomy_terms_static_reset

taxonomy_terms_static_reset()

Clear all static cache variables for terms.

File

core/modules/taxonomy/taxonomy.module, line 286
Enables the organization of content into categories.

Code

function taxonomy_terms_static_reset() {
  \Drupal::entityManager()->getStorage('taxonomy_term')->resetCache();
}
doc_Drupal
2016-10-29 09:46:32
Comments
Leave a Comment

Please login to continue.