Thread safe problem
It turned out today that some of the code in Fab Swingers was not thread safe. I hadn’t really given much thought to the threading that was going on in the background but it bit on the profile display pages.
Unfortunately only appears under load and roughly one in 400 times that a profile is viewed so I didn’t notice it up until know. There had been some reports in the forums about mail sometimes going to the wrong people but I’d just ignored it thinking it was user error.
My fix was to make sure that I was using cherrypy.thread_data rather than using an object that was created outside the thread.
I’ve scanned through the rest of the code and it looks fine.