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