Ice does not fail. Air, sunlight and lid opening do. A few habits double the working life of a cooler.

Ice melts because heat gets in, and it gets in three ways: through the walls, through the lid seal, and by walking straight in every time you open it. A cheap cooler managed well outlasts an expensive one managed badly, and the biggest single win costs nothing at all.
A warm cooler eats a large share of your ice just getting itself cold. The night before, throw in a sacrificial bag of ice, or leave it in a cold garage. Dump that ice in the morning and load with fresh.
Meat, stock, chili, anything you are eating later in the trip goes in frozen and acts as ice. Frozen water bottles do double duty as drinking water as they melt.
Block ice lasts far longer because it has less surface area. Cubed goes on top to fill gaps and chill fast. Air space is the enemy, so fill voids with towels if you have to.
The drinks cooler gets opened twenty times a day and the food cooler gets opened twice. Separating them is the biggest gain most people are not using.
Shade, and a towel or blanket over the top. Direct sun on a lid is brutal. On a truck bed, get it off the hot metal.
Cold water holds cold better than air. Drain only when it starts floating your food, and pack meat in sealed bags so nothing gets waterlogged.
Pre-chill, freeze your food, block ice on the bottom, keep drinks separate, keep it shaded, and leave the water in.