[wp-trac] [WordPress Trac] #29942: wp_get_object_terms - no caching mechanism in place - results in duplicate queries

WordPress Trac noreply at wordpress.org
Wed Apr 27 03:06:48 UTC 2016


#29942: wp_get_object_terms - no caching mechanism in place - results in duplicate
queries
----------------------------------------+-----------------------------
 Reporter:  webgeekconsulting           |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Taxonomy                    |     Version:  4.0
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  performance
----------------------------------------+-----------------------------

Comment (by dd32):

 Should also mention for others; You can use `get_the_terms()` which is the
 cached variant of `wp_get_object_terms()`.

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


More information about the wp-trac mailing list