We run a daily cron that gets all the users' data and updates their values. The problem is that get_users() is timing out because of the big userbase. Yes, I can update the
php.ini file and increase the timeout limit, but it would only delay the inevitable.
So, potential solution is to
get_users() in batches. For example, on the first batch, we get the users with ID 1-1000. Is the best approach to use the
include parameter and list 1-1000 IDs in an array? Seems quite desperate.
What other options are there for scenarios like these?