[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached

WordPress Trac noreply at wordpress.org
Wed Dec 17 16:38:45 UTC 2014


#21760: get_term_by() calls are not cached
-------------------------------------+-----------------------------
 Reporter:  wonderboymusic           |       Owner:  wonderboymusic
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Taxonomy                 |     Version:  2.3
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:
-------------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"30954"]:
 {{{
 #!CommitTicketReference repository="" revision="30954"
 Update individual term caches in `get_terms()`.

 This was removed in [29915] as part of the attempt to add cache support to
 `get_term_by()`. When that support was removed in [30900], it was not
 properly
 restored.

 This changeset includes a unit test to verify that the cache is properly
 primed
 for terms found in `get_terms()`, as well as tests to verify the other
 cache
 setting that was touched by [30900].

 Fixes #30749. See #21760.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21760#comment:82>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list