The salt-deprivation comment and the thing about food taking a while to take effect both ring true with me in particular. I don't eat any more on cycling days than non-cycling days and clearly I need to change this. I'll endeavour to eat more often in small quantities on days I do lots of cycling rather than what I do at the moment
My current routine of 2 hours of intense exercise followed by a large gap before I eat tea later in the evening needs to change as it sounds like by the time I eat in the evening it's too late for the salt/energy to sink in and have an effect so I'm kept awake.
Hopefully I'll report back once I've tried this out.