It is preferred to get the cleft palate repair done before 18 months, as the aim of the surgery is to repair the palate and avoid abnormal speech development. Thus, it should be done before 18 months of age.