Heat a frying pan and fry the bacon in it. Add the onions and continue frying. Add the pumpkin and continue frying, season to taste with a little salt, pepper and a tablespoon of caraway seeds. Mix well, set aside and let cool.
Preheat the oven to 180 degrees circulating air.
Put the puff pastry into a round shape with the baking paper, prick a little with a fork. Spread the cooled pumpkin mixture on the puff pastry, pour the cheese over it and spread it nicely. Mix together the milk, eggs, garlic, a little salt, pepper and nutmeg and spread over the cheesecake. Then bake the cheesecake in a fan oven for 30 to 35 minutes.