Complex sentence: In moderate doses caffeine typically does not affect learning or memory, and can improve some cognitive functions in people who are fatigued, due to its effect on alertness.
Split into simpler sentences: In moderate doses caffeine typically does not affect learning or memory. It does however improve some cognitive functions in people who are fatigued, due to its effect on alertness.