[wp-hackers] $cache_categories

Ryan Boren ryan at boren.nu
Wed Jan 4 01:05:28 GMT 2006


On Tue, 2006-01-03 at 17:17 -0700, Alex King wrote:
> Could we make categories an array property of the post object so they  
> are be easily accessed?
> 
> $post->categories
> 
> The post queries can pull the categories from the cache into each  
> $post, then regardless of the cache used, all the theme and plugin  
> folks need to do is access $post->categories.

wp_get_single_post() does this, but we should probably move this down
into get_post() so that everything is cached.

Ryan



More information about the wp-hackers mailing list