Charge order and its destruction effects on magnetocaloric properties of manganites