Category: Users

  • Optimising WP_User_Query Performance: Lazy Loading, Query Caching, and Memory Efficiency in WordPress

    Optimising WP_User_Query Performance: Lazy Loading, Query Caching, and Memory Efficiency in WordPress

    When working with WordPress sites that have a large number of users—especially in Multisite environments or setups that heavily rely on user meta—you may have noticed significant performance issues when querying users. The primary reason for this is how WordPress loads user data: • WP_User_Query retrieves user data from the database. • Each user is…

  • Making user queries in WordPress scale

    Making user queries in WordPress scale

    As one of the maintainers of the users component in WordPress core, the question of how well sites with lots of registered users scale, is an important one to me. The idea of sites with hundreds of thousands of register user is make more complex when you add multisite into the mix. So for a…