Sounds like you have already answered your own question. You said it only works if a fresh can with lots of fizz (gas). SO it must be the CO2 triggers peristaltic action. Just because the coke goes flat the pH of the coke doesn't alter much, if at all.