Please help

Hi, I've had a UTI since last week Saturday and I got my one day treatment since Monday, I've searched for information on how to avoid irritating it. It has been 3 days now since and I've been feeling a lot better but I accidentally ate something spicy by mistake and I would like to know if that would worsen the UTI and if it will what should I do to prevent it from coming back?