Email Users retrieves the list of users to populate the select box with using the WordPress get_users() function. Actual construction of the “Select” box is nothing more than looping over the results returned by get_users(). If is slow or consuming a lot of memory, I can only assume it is in the get_users() call.
My development site has 806 users and I don’t have any issues. I wasn’t sure what the PHP limit was set to, I had to go look. Mine is set to 128MB which was the default when I installed IIS on the Virtual Machine I use for development.
When I used Email Users with our Swim Team there were about 1000 users in that system. I no longer have access to the server so I don’t know what the PHP memory limit was set to but Email Users worked fine.
Could memory be an issue? I guess so but I wouldn’t think something as frequently used as get_users() would have a problem like that. I’ll try decreasing the memory limit on my development set up and see what happens.
I just changed my memory limit to 64MB and had no problems with my 806 users. Do you have anything else running (other plugins?) that may be causing some sort of conflict?
Hi Mike,
We do have other plugins running, but they didn’t have any issues when we had the lower memory limit, so I’m assuming that the extra memory required was only for this plugin.
We are using a membership plugin however, that may be interfering with users somewhere, but turning that off is a no go for now so I can’t tell you if it’s responsible.
If you’ve tested the plugin with this many users and it’s fine, it’s likely the issue was on our end, but I wasn’t so sure at the time.
We’ve solved the issue for now by upping the limit, and we’ve only got one client using it at the moment so I’m not really bothered. If we notice the issue again I’ll let you know.
Cheers,
jacib