Having your fridge wired correctly is very important. Some caravan fridges have their 12V connected directly to the caravan battery, however this will soon lead to a warm fridge, and a flat battery. The solution to this is to rewire your caravan fridge to the tow vehicle via the 12pin trailer plug, or its own Anderson plug.
Your caravan fridge should only operate on 12V while in transit (powered by the vehicle), and when you arrive at camp you should switch to 240V or gas. This setup keeps your camping battery at 100% when you arrive at camp. Caravaners who do run their fridge off the caravan battery tend to have multiple batteries and a roof full of solar panels in order to keep up. A fridge running on 12 volts can consume between 5 - 25amps.
Portable fridges are an excellent investment and they will nearly always come with a plug ready for a 12V socket. However, often the factory sockets in the back of 4x4s are not up to scratch, constructed with cheap plastic and even cheaper wiring. This wiring cannot handle the Amps your fridge needs to stay cold, which could result in the socket being damaged or your fridge not working correctly. To keep the fridge cold, make sure you have a good connection and the right size wiring with circuit protection.