Heat the oven to 350°F on the regular bake setting with the rack in the center. Grease the 8x8 pan and line it with a parchment sling that comes up two sides.
In a medium bowl, whisk the flour, baking powder, and salt together and set it aside.
In a large bowl, whisk the sugar and eggs by hand for 30 to 45 seconds, just until smooth and slightly lighter.
Whisk in the oil, vanilla, milk, and sourdough discard until smooth.
Add the dry ingredients to the wet and fold them in with a spatula just until no dry streaks remain.
Pour the batter into the pan right away, smooth the top, and tap the pan on the counter.
Bake for 40 to 50 minutes. Start checking at 38 minutes and pull the cake when the center reads 205 to 210°F.
Cool in the pan for 10 minutes, lift the cake out by the parchment, and let it sit on a wire rack for another 10 to 15 minutes, until it is warm but no longer steaming.
Wrap the cake snugly in plastic wrap and chill for at least 2 hours, or freeze for 45 to 60 minutes.