Hello,
I just started to administrate a site with Wordpress and s2Member, I wanted to update all the parts because of recently bugs found on WP that let an attacker to gain access to my site/server. So I can update all without issues until It’s the turn of s2member plugin. It just hangs the site, after a lot of test and some plugin discard proccess I found that the culprit is s2Member. On my wp-config.php file Is set a variable MEMBERSHIP_LEVELS to 50, If I comment it, the site start to work again so I don’t know what is happening. I installed a query analizer plugin to check the performance and after a few tests with other values under 20 levels, I found that Wordpress is doing more than 400 querys to my DB slowing down a lot the performance. Our user table have more than 300.000 users and I figured out that this varible triggers a massive update to options database on each click. How I can handle this situation to let my site work with the latest version of s2Member at light speeds?
P.D. My site run over php7 with a Percona flavored Mysql Database and Redis for caching.
Best regards.