Drinking plenty of fluids helps flush bacteria from the urinary tract. Avoid caffeine until your infection is gone. Avoid drinking alcohol.