Preheat oven to 350℉. Lightly spray the sides of a cake pan or pie plate. To make the topping, melt the non-dairy butter in a saucepan, add sugar, and stir. Spread this mixture around the base of your cake pan.
Arrange the pineapple slices around the pan, then place the cherries wherever they fit. Reserve the juice from the pineapples to use in the cake batter.
For the cake batter, combine the pineapple juice, ground flaxseeds, oil, and vanilla in a bowl and set aside.
Separately, mix gluten-free flour, almond flour, sugar, baking powder, and salt. Add pineapple mixture and mix to form a batter.
Pour the batter evenly over the pineapple and cherries. Bake for 40-50 minutes or until a toothpick inserted in the center comes out clean.
Remove the cake from oven, and allow it to cool for about 10-15 minutes before inverting the cake onto a serving platter. Use a knife to loosen the cake from the side of the cake pan if it is sticking.
Store in an airtight container and keep refrigerated for up to 3 days.