typically, a cake will only stay fresh for up to three or four days before the moisture is drawn out and the texture becomes drier. a cake can last in a fridge for a little bit longer if it has been frosted as the frosting keeps the moisture in the sponge.