Lining your Dutch oven is not necessary for baking a cake. But if you do not want to deal with the cleanup, some people like to line the pots with foil. I personally prefer NOT lining my pot because it guarantees the brown sugar and butter caramelizing and browning your beautiful pineapple.