养胃 comes from traditional ideas about food: warm, soft, plain foods such as
小米粥 or
山药 are said to "nourish" the stomach, while cold drinks and spicy food are thought to upset it. Online it is also a joking euphemism for impotence, because it sounds like
阳痿.