Preheat the oven to 350°F (175°C). Grease a 9×13-inch baking dish.
Spread the undrained crushed pineapple evenly over the bottom of the prepared baking dish.
Spoon the cherry pie filling over the pineapple and gently spread it into an even layer. Do not stir the fruit together.
Sprinkle the dry yellow cake mix evenly over the fruit. Spread it gently into an even layer without pressing it down.
Drizzle the melted butter evenly over as much of the cake mix as possible. Try to minimize dry spots.
Sprinkle the chopped pecans or walnuts over the top, if using.
Bake uncovered for 45 to 60 minutes, or until the topping is golden brown and the fruit is bubbling around the edges.
Remove from the oven and let the dump cake rest for 10 to 15 minutes.
Serve warm with whipped cream or a scoop of vanilla ice cream, if desired.
