you can leave a cake with cream cheese frosting out overnight (the sugar will help preserve it) but if your kitchen is too hot, don't take the risk. stick it in the fridge!