So apparently it's something even Mormons are confused about but official doctrine is that caffeine is not a problem. The one guy I knew was fine with caffeine
: In 2012, the church released an official statement stating explicitly that caffeinated soda is allowed under church doctrine. Still, many Mormons will not consume caffeinated drinks.