[wp-hackers] WP 3 Multisite List Blogs

Otto otto at ottodestruct.com
Sun Aug 1 14:21:15 UTC 2010

You know, get_blog_list doesn't look like it'd be so bad if you turned
off the postcount queries.


On Sun, Aug 1, 2010 at 6:08 AM, Peter Westwood
<peter.westwood at ftwr.co.uk> wrote:
> 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
> Cheers
> --
> Peter Westwood
> http://blog.ftwr.co.uk | http://westi.wordpress.com
> C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list