Preheat the oven to 350 F or 175C.
Grease and line an 8-inch (20cm) springform cake with baking paper.
Start by making pistachio flour first. Combine whole pistachio kernels with 2 tablespoons of sugar in a food processor until you get an almond flour-like consistency. Skip this step if using store-bought pistachio flour.
In a bowl combine milk and vinegar. Let it sit for 5 min until it is slightly curdled then add sugar, vanilla extract, and oil. Mix with a hand whisk until sugar is dissolved.
Add all-purpose flour, cornstarch, pistachio flour, baking powder, baking soda and salt. Mix the dry ingredients with the liquid ingredients. Pour the batter into the cake tin.
Bake for 40-45 minutes until firm to touch. Remove the cake from the oven and let the cake cool. Place the cake on a serving dish or a cake stand.
Add the prepared chocolate ganache to the cooled pistachio cake and spread it evenly with an offset spatula. Decorate with pistachio flour. You can store the cake in an airtight container for up to 7 days in the fridge or 3 days at room temperature.