[wp-hackers] $cache_categories

Kaf Oseo kaf at szub.net
Tue Jan 3 10:07:06 GMT 2006


Austin Matzko wrote:
> I was trouble-shooting a plugin and realized that $cache_categories
> seems to have disappeared from WP 2.0.  Is there an obvious
> replacement, or could someone point me to a discussion about how to
> retrieve the same data?

Noticed same with a plugin of mine. I'm pulling category data from
the wp_object_cache object available through $GLOBALS* now:

$GLOBALS['wp_object_cache']->cache['category'][$cat]

-Kaf

* Unless someone can recommend a better alternative.



More information about the wp-hackers mailing list