[wp-hackers] WP 3 Multisite List Blogs

Peter Westwood peter.westwood at ftwr.co.uk
Sun Aug 1 11:08:24 UTC 2010

On 1 Aug 2010, at 11:33, Brent Shepherd wrote:

> The obvious choice would be get_blog_list:
> http://codex.wordpress.org/WPMU_Functions/get_blog_list
> Though I see it's been deprecated in 3.0 with no alternative provided.

It was deprecated because the query is sucky on anything but a small install and you really don't want to do it on every page load where you want to display the list.

It is also not something that most sites want.

An idea solution would use a similar query to build the list and then make heavy use of caching with the result.

Depending on how often your list changes you might want it to cache for minutes or for the cache to be invalidated when someone adds/modifies a new site

Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5

More information about the wp-hackers mailing list