Thrush is caused by a yeast, candida which usually lives harmlessly in the mouth, on the skin, in the vagina and in the gut. Athletes foot can be caused by a number of different skin living fungi.
The body is a host to a whole range of bacteria and fungi which usually live in harmony. When they get out of balance, it can take a long time to clear. Simply killing off the ones that are potential pathogens does not always correct the problem unless your body is able to balance the rest of the bacteria, which is not always possible.
Yeasts are fed by sugar, so this can indeed be a factor.
Vinegar has been shown to kill candida in a petri dish so can kill the bacteria and unpasteurised vinegar will also have beneficial bacteria which will help to repopulate the beneficial bacteria.
The whole area of the gut biome and health is relatively new in scientific terms and not always consistent. However, the knowledge about how what we eat affects our health is not new. Traditionally. our diets contained very few refined carbohydrates, lots of raw foods and most cultures have some form of fermented foods. With the discovery of pasteurisation and the advent of refrigeration (both great advancements which brought many benefits), we have lost the need to include fermented foods in our diet and therefore a healthy source of bacteria to keep the potential pathogens in balance.
So, sadly, just cutting down or even cutting out sugar is not enough and introducing probiotics on their own is also not enough. There is no one perfect formula with enough research behind it for me to say.... do this and it will be perfect. But... if you exclude processed carbs, sugar, dairy, brewers and bakers yeast, soy, deep sea fish, gluten grains, citrus fruit and eat lots of vegetables, pulses, seeds, a range of protein sources and a range of fermented foods, you have a chance to rebalance your gut and the rest of your body. Avoid 'substitutes' and eat naturally occurring food. (I mean don't go for the gluten free stuff, eat naturally gluten free instead and don't replace the refined sugar with maple syrup and loads of fruit sugar.)
You will only stop the reoccurrence if you balance your body's microboime.
Lots of great ted talks, Sheena Cruickshank and Ted Knight are good to watch.