• This immediately breaks my entire site, and I already have memory up to 1024M, with only 26k users.

    Haven’t looked too deeply into the code, but I’d be weary of installing this on your site, unless you have a staging site, FTP access, and database access in case it breaks your site too and need to revert it.

    Thankfully I tested it on a staging site first. But come on, WP should not require > 1024M to run a basic plugin. I have my own server, so it’s fine to increase my memory limit; but it’s WordPress: most people do not.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Does the same with mine, It just does a SELECT * users SQL query! makes the admin backend nearly unusable.

    Incredibly slow query slowing down my website with only 5000 users.
    Had to disable entirely because of poor SQL queries.

    View post on imgur.com

    Plugin Contributor Sanjay Dabhoya

    (@sanjaydabhoya)

    Hi @tobinfekkes,

    Sorry for the inconvenience caused to you.
    Please add below code in wp-config.phpo file
    define( ‘WP_MAX_MEMORY_LIMIT’ , ‘2048M’ );

    if require increase memory limit in statement.

    Thank you!

    Thread Starter Tobin Fekkes

    (@tobinfekkes)

    @sanjaydabhoya

    Thank you for the response.

    I’m sorry, but that is not an appropriate fix to this issue. There is absolutely no reason a WordPress site should allow, or even ever need, 2 gigs of memory. That’s simply preposterous, unacceptable, and even irresponsible. I am running massive, complex eCommerce stores on way less than 1 gig, so if your tiny, simple, one-feature plugin requires 2 gigs of memory, it’s a problem with your code and queries, not with my server’s memory. There are a handful of ways to fix this on your end by optimizing queries and filtering results rather than blanket-loading the whole user table in a page load. If you don’t know how, then stop publishing plugins, or fix it on your end, rather than put it on me to fix.

    Thankfully, I run my own server, so I was able to quickly debug and fix the issue, and delete your plugin. However, not every WordPress user has that flexibility (particularly on shared hosting), so they deserve to know this beforehand so you don’t take down their site and brick it for longer than they care to have it go down.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Careful, this plugin breaks sites with lots of users’ is closed to new replies.