So if the white discharge is on regular basis do we have to have a ghusl before namaz?

No theres no ghusl needed unless you have had sexual intercourse with your husband and released orgasm