I would suggest experimenting with food before the long rides, find out what works for you and what to avoid. Unlike 10wheels, I can scarf a huge lunch and enjoy the rest of a long ride if there isn't a ton of climbing right after eating.
I also have to avoid gels and too many Clif bars or Powerbars or my stomach gets weird. Regular food works best for me.