danielbachhuber/Co-Authors-Plus — Issue #5: Improve performance of auto-suggest user search
Author: danielbachhuber
Created: 2012-01-23 23:11:22+00:00
State: open

Currently, we [use and filter get_users()](http://plugins.trac.wordpress.org/browser/co-authors-plus/tags/2.6/co-authors-plus.php#L690) to handle the auto-suggest search. This works fine, but it would be better to improve its performance. We're doing queries every time the AJAX is fired.

One way we might do this is to load all of the users into cache on load and then search through that cached value with PHP instead. This way, we only need to to query once (on the first ajax search) and all other results are returned from the cached values.