If your cake has a fruit topping or whipped cream/frosting, it's safe to put it in the fridge so it lasts longer.