I have a mystery issue with my shower that I'm hoping someone can help solve. When I turn on the Delta tub faucet, everything works as expected. However, if I use the faucet again shortly afterward (within say an hour), a loud banging/machine gun sound occurs after about 5 seconds and lasts for another 10-20 seconds before stopping. If I change the temperature while it's banging, the banging temporarily stops. This problem only started after I put spray foam insulation into the wall where the pipes are located. At first it was a squealing sound, but after I replaced the cartridge, it became a banging/machine gun sound. I thought it could be water hammer, but I drained the pipes and refilled to no avail. This has been happening for months.
Any ideas?
Any ideas?