Intermittent-fasting diets may help prevent infections in those who practice them, a study published Thursday by the journal PLOS Pathogens found.