Yeast is one of the causes of cradle cap. So reducing your intake of sugary, high fat foods will help as will eating fresh fruit, vegetables and wholegrains. Reduce your consumption of processed foods and those which are high in animal fats. Consider taking probiotics (such as Yakult) as these can help to prevent any fungal infections.