Sweet potato pies usually contain milk and eggs, so they are essentially baked custard pies and should be stored in the refrigerator. After baking your pie, let it cool completely. This may take about two hours- you don't want to feel even a hint of warmth when you touch the bottom of the pie pan. Loosely cover the pie with aluminum foil before refrigerating for up to three days.