Advice please

Cougar
So I had my last period on the 21st and I got a yeast infection. I had it treated and it went away. Now I've got another one already! I've been known to have bad yeast infections but only before my period never twice in a row. Does anyone have any possibilities as to why this could happen??