Clear all static cache variables for vocabularies.
$ids: An array of ids to reset in entity controller cache.
function taxonomy_vocabulary_static_reset(array $ids = NULL) {
Drupal::entityManager()
->getStorageController('taxonomy_vocabulary')
->resetCache($ids);
}