Are you sure, that doing this invalidation is the duty of the view? I'd prefer if this code would go into the model.