function taxonomy_terms_static_reset

7.x taxonomy.module taxonomy_terms_static_reset()

Clear all static cache variables for terms.

3 calls to taxonomy_terms_static_reset()
TaxonomyHooksTestCase::testTaxonomyTermHooks in drupal-7.x/modules/taxonomy/taxonomy.test
Test that hooks are run correctly on creating, editing, viewing, and deleting a term.
taxonomy_term_delete in drupal-7.x/modules/taxonomy/taxonomy.module
Delete a term.
taxonomy_term_save in drupal-7.x/modules/taxonomy/taxonomy.module
Saves a term object to the database.

File

drupal-7.x/modules/taxonomy/taxonomy.module, line 945
Enables the organization of content into categories.

Code

function taxonomy_terms_static_reset() {
  drupal_static_reset('taxonomy_term_count_nodes');
  drupal_static_reset('taxonomy_get_tree');
  drupal_static_reset('taxonomy_get_tree:parents');
  drupal_static_reset('taxonomy_get_tree:terms');
  drupal_static_reset('taxonomy_get_parents');
  drupal_static_reset('taxonomy_get_parents_all');
  drupal_static_reset('taxonomy_get_children');
  entity_get_controller('taxonomy_term')->resetCache();
}