get_users() cause memory problems
-
On the free version in shortcode-builder.php, you are fetching the authors by using get_users(). This fetches all the users along with all the metadata. For a wp_usermeta table with 1 million rows, I had to allow 1 GB of memory limit for the code to execute in like 30 seconds. Please do not fetch data like that. You guys can use a search box feature like WooCommerce does, in which you will get dynamic search results as uses type in the search criteria.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_users() cause memory problems’ is closed to new replies.