[wp-trac] [WordPress Trac] #36814: get_the_terms() caches term count property

WordPress Trac noreply at wordpress.org
Thu May 26 04:49:12 UTC 2016


#36814: get_the_terms() caches term count property
-------------------------------------+---------------------------
 Reporter:  ocean90                  |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.6
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37573"]:
 {{{
 #!CommitTicketReference repository="" revision="37573"
 Store only term IDs in object term relationships caches.

 Previously, objects containing all data about a term were stored in each
 object's term cache. Besides being wasteful, this approach caused
 invalidation
 issues, as when a modified term count required a flush for all objects
 belonging to the term.

 Backward compatibility is maintained for plugins that continue to put
 object
 data directly into the `{$taxonomy}_relationships` cache bucket.

 Fixes #36814.
 }}}

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


More information about the wp-trac mailing list