Honestly You'll always remember these things that happen, its part of life all you can do is learn to live with it and move on. My High school sweetheart got married a year after we broke up. I think about her all the time but I don't let it consume me anymore.
It just takes time. Everything that hurts, hurts for a while, they always get better if you let them tho :P
I know its not what your looking for, but there's no quick fix for it. When you care so much in the first place letting go is the hard part.