rebuild cache when deleting a term