PPIs don't work right if you don't eat, but eating has to be about
half an hour after taking the med - as Bill said. The acid producing cells are not affected if they are not turned on, which is why you have to eat - to turn them on. You just have to wait to eat until the med gets absorbed into the blood stream, as it doesn't work directly on the cells in the stomach but through the blood getting to the cells.
WJF - how about
taking it in the early evening before a small snack? Still, don't lie down for at least a couple of hours. Or maybe you need to take it twice a day.
PPIs don't last 24 hours, no matter the advertizing. You can look up "duration of action" and the specific med (any med) on the 'net.