Clear all static cache variables for terms.
function taxonomy_terms_static_reset() { Drupal::entityManager() ->getStorageController('taxonomy_term') ->resetCache(); }