Does fasting help or cure?

So ive heard a few say fasting has cured them. But then there are others saying candida can thrive on ketones on low carb diet. So wouldnt fasting(since ketosis state will be developed) help candida thrive ? A contradiction im confused about.