Preheat the oven to 350°F (180°C).
Prepare the cake pans (two 9-inch or three 8-inch with removable bottoms) by spraying or buttering them and lining the bottom with a circle of parchment paper.
In a large bowl (I use an electric mixer, but you can use the stand mixer), beat oil and sugars for 2 minutes.
Add eggs, one at a time, beating well after each.
Add the mashed bananas, pineapple, and vanilla and mix well but don’t beat much.
Sift the dry ingredients (flour, cinnamon, baking soda, and salt) and add them in 2 parts. I have them measured and sift directly over the batter. Incorporate very well but do so at low speed, being careful not to overbeat at this point so the cake is tender. Beating the flour too much results in tougher cakes.
Add nuts and mix it all with a spatula.
Divide the cake batter evenly among the prepared pans and bake in the preheated oven for about 25-30 minutes for three layers, and about 5-10 more minutes for 2 layers. The cake surface will be dry but shiny, and a cake tester or toothpick inserted in the middle should come out clean.
Let cool completely on a wire rack.
Fill and frost the cooled cake with the frosting below.
Refrigerate leftovers, covered in plastic wrap or in an airtight container.