[wp-testers] $category->category_count > not up to date !
Ryan Boren
ryan at boren.nu
Tue Nov 15 16:39:02 GMT 2005
On Tue, 2005-11-15 at 07:40 -0800, Ryan Boren wrote:
> On Tue, 2005-11-15 at 18:23 +0800, Kishore Balakrishnan wrote:
> > I see that the category_count is null for some of the categories and
> > therefore... I donot see them on the sidebar
> >
> > I included "update_category_cache()" at the beginning of list_cats
> > and doesnot help
>
> We need to bump the DB version so that the category_count field is added
> to the DB. I'll fix that today.
Here we go:
http://trac.wordpress.org/changeset/3091
We now store the counts in the category objects rather than computing
them at run-time since COUNT operations are expensive, especially with
InnoDB tables.
Ryan
More information about the wp-testers
mailing list