Preheat the oven to 350°F (175°C). Grease and flour a 9x13-inch baking pan.
In a large mixing bowl, combine the flour, granulated sugar, brown sugar, baking powder, baking soda, salt, and ground cinnamon.
Add the softened butter, eggs, vanilla extract, and sour cream to the dry ingredients. Mix until well combined and the batter is smooth.
Gently fold in the diced apples and chopped nuts (if using).
Pour half of the batter into the prepared baking pan and spread evenly. Drizzle half of the caramel sauce over the batter.
Pour the remaining batter over the caramel layer and spread evenly. Drizzle the remaining caramel sauce on top.
In a small bowl, mix together additional cinnamon and sugar. Sprinkle this mixture over the top of the cake.
Bake in the preheated oven for 40-45 minutes, or until a toothpick inserted in the center comes out clean.
Allow the cake to cool in the pan for about 10 minutes before serving. Enjoy warm or at room temperature.