The cooling of flare produced plasmas in the solar corona