Let the pineapple upside down cake cool for at least 30 minutes in the pan before flipping. This will give the cake time to set up and get a little more firm, but still be warm enough to pop right out of the pan.