Seconding the recommendation to try a different saddle, maybe one with a cutout. I have had UTI-like symptoms for a few hours after riding with this one awful saddle I used to have. It wasn't a true bacterial infection, but it was definitely irritated, burning and uncomfortable.

Also, avoiding refined sugars, staying very well hydrated, and drinking unsweetened cranberry juice can help a lot to prevent these nasty events from happening.