Taking proton pump inhibitors (PPIs), a group of medications used to treat acid reflux, for several years may raise your risk of developing dementia, new research has found. The study did not find that taking PPIs for less than 4.4 years was associated with increased dementia risk. It’s crucial to speak with your doctor about how long you may benefit from PPIs, rather than taking them continuously without consulting a healthcare provider, experts say.