They looked at fasting interval as well, longer fasting impairs cognitive performance. The abstract states "Notably, we observed modest reductions in cognitive performance for longer fasting intervals and for younger (vs. older) participants during fasts."