Q. Dear Rabbi, On Shavuoth night when we stay awake all night learning, if someone keeps on drinking coffee does he have to make a Brocho each time he drinks a cup or is one Brocho enough for all the night? How about Brocho Achronoh?
A. Mishnah Berurah (185 - 17) writes that as long as the individual who has recited a brochoh, has not diverted his attention and keeps his intention on continuing drinking (even if the food or drink has been already digested) he does not have to repeat the brocho. However, the Shoel Umeshiv (Tom. 5-23) states that if more than a half an hour passes after finishing each cup he should recite anew (comparable to the four cups of the Seder). Similar is the opinion of Chukei Chaim (s-1), who maintains that after a lapse of two hours he should repeat the brocho, especially if he has to leave his place of learning and prepare a cup in another room.
Horav Shlomo Miller Shlit”a is of the opinion that if one has finished his drink and now engages in learning, it would be considered heseich hada'as (diversion of attention) and a new brocho should be recited when he decides to drink again. As for the brochoh achronoh is concerned, Minchas Yitzchok (5 -102) opines that the time for digestion for liquids is rather short and one should recite that brocho immediately after he finishes drinking.
Rabbi A. Bartfeld as revised by Horav Shlomo Miller Shlit”a.