Hello,
I may not be the admin but the answer to this is pretty simple. If the person selling the cheesecakes or any other potentially hazardous food but has a bakers license. Meaning their kitchen was inspected and paid a 10 dollar fee, then they can bake anything they wish hazardous or not, as long as the items are stored properly, and in a situation where as you stated the baker is selling at a farmers market as long as they keep it cool they can sell any item they make. That’s more of the farmers market call, not a cottage food law situation. As cheesecakes do not fall under cottage food law, they fall under potentially hazardous food.
Hope this helps!
Laura