Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@joehoyle
Copy link
Member

The count query for the users should just pass the $fields => 'ID' param,
otherwise WordPress will init a WP_User object for every user on the site,
basically killing it.

The count query for the users should just pass the $fields => 'ID'
param, otherwise WordPress will init a WP_User object for every user on
the site, basically killing it.
@danielbachhuber
Copy link
Member

@joehoyle Did you mean to sneak the JS changes in?

@danielbachhuber danielbachhuber added this to the 2.0 Beta 8 milestone Nov 29, 2015
danielbachhuber added a commit that referenced this pull request Nov 30, 2015
Set the fields to 'id' fixing large memory usage
@danielbachhuber danielbachhuber merged commit e833f19 into develop Nov 30, 2015
@danielbachhuber danielbachhuber deleted the optimize-get-users branch November 30, 2015 16:02
@danielbachhuber danielbachhuber changed the title Set the fields to 'id' fixing large memory usage Set fields=>id when using WP_User_Query to fix large memory usage Dec 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants