Preheat oven to 350 degrees F. Lightly grease three 9-inch cake rounds. Dust with flour and tap out the excess or line bottoms with parchment paper.
In a large bowl, stir together flour, sugar, baking soda, baking powder, cinnamon, cloves, nutmeg, allspice and salt.
Add applesauce, crushed pineapple, vegetable oil, eggs, and vanilla. Use a hand mixer to beat on a medium speed until smooth. This should take just 1 to 2 minutes.
Use a rubber spatula to stir in shredded carrots, walnuts, and raisins (if using) until just combined.
Divide batter among the three pans, about 3 cups of batter per pan.
Bake for 30-35 minutes until a toothpick inserted into the center comes out clean.
Cool on wire racks for 15 minutes and then turn out the cakes onto the racks and allow to cool completely before frosting.
Cream Cheese Frosting
Use a hand mixer to beat cream cheese and butter together for 1 minute until light and fluffy. Add in vanilla extract and mix until combined, about 10 seconds.
Slowly add in powdered sugar, one half cup at a time until smooth, mixing between additions. Use to frost completely cooled cakes. Store frosting and/or frosted cake in the refrigerator.