Washing baby’s head every night?

My little one is starting to get cradle cap. I think. Everything that I read says wash head every night but everyone that I talk to says don’t wash all the time. Suggestions on how often to wash?