[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 17:08:29 UTC 2012
#21760: get_term_by() calls are not cached
----------------------------------------+------------------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------------------
Comment (by ryan):
Instead of caching multiple copies of an object, we usually cache IDs that
can be used to look up a single cached copy. slug -> ID, ID -> object.
I'm not really digging term_cache_group(). I consider cache keys and
groups public API that shouldn't change.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21760#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list