How to check when the taxonomic vocabulary has been changed Drupal 7

advertisements

i have vocabulary with name dish_type, i need to clear specific cache when it was saved, i tried to make hook_taxonomy_overview_terms_submit(), also for hook_taxonomy_vocabulary_update() but it didnt work. Is there a way to track this? Please need your help


Have you investigated hook_taxonomy_vocabulary_presave($vocabulary) as a possible solution? This will be called before your vocabulary is saved, and I should think updated. You could then do a cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE).