Invite Anyone
fix for site with 10,000 users (3 posts)

  1. Dwenaus
    Posted 4 years ago #

    hey boone,
    first, thanks for the great plugin. the users love it -- can't live without. But now that our site has grown to over 10,000 users, the initial name lookup when showing the list of users to invite causes an out of memory error. I could up the memory, but a simpler solution would be to change line 264 of /invite-anyone/group-invites/group-invites.php to read
    $display_name = $member['display_name'];

    i could add a toggle on the admin that would be off by default, but when turned on uses this more streamlined, less elegant, approach. The toggle would be called 'For sites with many thousands of users get simpler list of users'. then in group-invites.php put an if statement based on that toggle.

    shall i code this up?

    fyi, the error i was getting was:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4864 bytes) in myserver.../wp-includes/kses.php(550) : runtime-created function on line 1


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Increase the memory available to PHP:

  3. buzug
    Posted 3 years ago #


    Wouldn'it be possible to make some basic settings, so that huge communities can tune the kind of data/sql request that is performed ? And/or to request the users list through ajax, so that the page can load quickly ?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Invite Anyone
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic