[wp-trac] [WordPress Trac] #58116: rest_{$this->taxonomy}_query Cache Problem

WordPress Trac noreply at wordpress.org
Mon Apr 17 12:39:07 UTC 2023


#58116: rest_{$this->taxonomy}_query Cache Problem
--------------------------+------------------------------------
 Reporter:  tnolte        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api, performance
--------------------------+------------------------------------

Comment (by spacedmonkey):

 I think the issue came in here [52836].

 These filters change the requested fields, as it returns a props that
 could the the WP_Term object, the count field returned by the db query,
 maps to count in WP_Term. Now, we only get term_ids and get term object
 from object cache, it breaks that.

 I am not sure, if we should fix this issue. Using filters in this way, it
 is pretty edge case and is somewhat brittle. I am not sure we can put a
 fix in place that would fix this forever and feels like we are more likely
 to break things, as this as been this way for 3 versions now.

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


More information about the wp-trac mailing list