It depends how caffeine effects you.
I have a high tolerance and a Red Bull barely moves the needle for me, meanwhile my GF has a Pepsi and she's anxious, nervous, and uncomfortable.
I think the blanket statement "avoid caffeine on cycle" is a good rule, but not black and white for everybody.