Devices for cooling the moulds