Am I making this up? Chronic UTIs

Okay I might sound crazy but I need help. I have been with my PA for 8 years. Never had any uti problems for 6 years. Once we got married, I had SO many UTIs after sex with him. Almost every time. For two years. Now that he is “clean” from porn, I haven’t had any UTIs. I understand that he might not be causing them, but the timing is driving me crazy and I wonder if masturbation was adding more bacteria or if he was cheating. He had been using porn the whole time, so if that was the case I guess I’d have UTIs the whole time. I might be making it up. Has anyone had anything similar happen?