If her ear is swollen red and there is more likely chance that it is not cradle cap. Seems like the baby has caught an ear infection
and its better you visit the pediatrician/ ENT specialist
to get medical aid.
I hope you found my response to be helpful and informative. If you have any additional concerns I would be happy to address them.