If you cover unfrosted cake layers, they will stay fresh at room temperature for three to four days after baking. After that, they start to dry out. A frosted cake will stay fresh for a few days longer if wrapped in plastic wrap and refrigerated. The frosting will help seal in the moisture in the cake.