[wp-hackers] cache_categories and category_cache
Mark Jaquith
mark.wordpress at txfx.net
Sun Jul 25 10:06:33 UTC 2004
As far as I can tell, $category_cache stores category info on the posts
returned in $posts = $wpdb->get_results($request); (the posts being
processed)
$cache_categories is just pretty much a dump of the $tablecategories
table, including categories that aren't related to posts being
displayed. So while $category_cache is used for displayed-post-related
stuff, $cache_categories is used for unrelated category stuff, like
showing a list of all categories, or getting the name of a category by
its id.
At least, that's how I read the code... I only just glanced at it now
(personal PHPXref of current CVS)... but that seems to be the distinction.
Tara Star wrote:
> just a quickie -- I'm looking at template-functions-category.php on
> http://www.junesix.org/xref/beta/ and I see both $cache_categories and
> $category_cache used in the first two functions. Do these two cache
> variables do different things, or should they be one?
>
> Steph
> PS: looking at that to see if it's still worth trying to get
> http://climbtothestars.org/code/nested-cats.phps to work -- any input
> on that welcome, btw
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>
>
More information about the hackers
mailing list