Preheat Oven: Preheat your oven to 350°F (175°C). Grease and flour a 9×13-inch baking dish.
Mix Dry Ingredients: In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, ginger, nutmeg, and cloves.
Mix Wet Ingredients: In a large bowl, combine applesauce, eggs, vegetable oil, granulated sugar, brown sugar, and vanilla extract. Mix until smooth.
Combine Mixtures: Gradually add the dry ingredients to the wet mixture, mixing just until combined. Fold in nuts if using.
Bake: Pour the batter into the prepared pan. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean. Cool completely on a wire rack.
Prepare Frosting: Beat butter, cream cheese, cinnamon, and vanilla extract until light and fluffy. Gradually add powdered sugar, beating until well combined.
Frost Cake: Spread frosting evenly over the cooled cake.
Store: Refrigerate until ready to serve. Leftovers can be covered and stored in the refrigerator for up to four days.