The cake must be refrigerated if it has a layer of cream cheese frosting on top. Cream cheese is a fresh dairy product that needs to be chilled within 2 hours. Unfrosted pumpkin cake can be tightly covered and stored at room temperature for 1 day.