There’s nothing in the average pizza that’s going to spoil in a day.
(How do people think we survived before refrigeration?)
I think they just went to restaurants then.