[wp-trac] [WordPress Trac] #55837: WP_Term_Query cache problem

WordPress Trac noreply at wordpress.org
Tue Jun 14 11:41:47 UTC 2022

#55837: WP_Term_Query cache problem
 Reporter:  denishua                         |       Owner:  spacedmonkey
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.0.1
Component:  Taxonomy                         |     Version:  6.0
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
Changes (by spacedmonkey):

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


 In [changeset:"53496" 53496]:
 #!CommitTicketReference repository="" revision="53496"
 Taxonomy: Fix caching issues in `WP_Term_Query` class.

 Introduced [52836] when passing `child_of` or `pad_counts` parameters to
 `get_terms` or `WP_Term_Query` class, the array of terms received by the
 query, was not correctly cached. This
 change simplifies the logic in `WP_Term_Query` and ensures terms are
 correctly cached. This change also, improves performance, by only caching
 an array of term ids where possible.

 Props denishua, spacedmonkey, oztaser, peterwilsoncc, SergeyBiryukov,
 georgestephanis, jnz31, knutsp, mukesh27, costdev.
 Fixes #55837.

Ticket URL: <https://core.trac.wordpress.org/ticket/55837#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list