I've written in Personal the reasons why I haven't got out much this year, suffice 'in public' to say I had a health scare but will be fine, in time.
My total mileage for 2017 stands at <50 miles! A shockingly low number for me in a normal week, nevermind more that 4 months.
I fully expect, once I'm given the all clear to ride normally, to experience severe cravings from sweet food after my first 4 or 5 rides. This, for me, has been normal in the past when I've been laid off the bike by bad weather for a month or so. It goes away after the first few rides and essentially I eat normally on ride and none ride days thereafter.
In those early ride days I tend to indulge the craving as it's my body telling me it's low on immediate fuel, but while I might well have a small piece of cake after a ride, but I also make sure I eat something which has a slower release of energy too. Limiting how much I eat isn't easy after the initial sweet cake, I could eat the whole damn thing if I was weak, but the slower release food helps fill me.