There are a few different methods to prevent a fruit flan from getting soggy. You can sprinkle the cake base with whipping cream stabilizer (common in Germany) or ground nuts. A layer of cold vanilla pudding or Nutella between the cake and the fruit also works well.