Is feed a cold, starve a fever really good advice?

No. Neither bacterial nor viral infection (or fungal for that matter) care what or when you eat. Your symptoms are your best guide to your diet. If you are hungry, eat. If not, then skip it.