Avoid bladder irritants such as caffeine, alcohol, spicy foods, artificial sweeteners, and acidic fruits like oranges and lemons if you have a UTI. These foods can exacerbate symptoms and prolong recovery time.