[wp-trac] [WordPress Trac] #14485: Taxonomy hierarchy cache isn't properly refreshed

WordPress Trac noreply at wordpress.org
Mon Feb 10 11:13:26 UTC 2014


#14485: Taxonomy hierarchy cache isn't properly refreshed
----------------------------------+-----------------------------
 Reporter:  thealien              |       Owner:  wonderboymusic
     Type:  defect (bug)          |      Status:  reopened
 Priority:  high                  |   Milestone:  3.9
Component:  Cache API             |     Version:  2.7
 Severity:  normal                |  Resolution:
 Keywords:  has-patch needs-docs  |     Focuses:
----------------------------------+-----------------------------
Changes (by kovshenin):

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


Comment:

 I proposed to revert this is #22526 in favor of a simpler fix.

 The cache invalidation with static was introduced in r9102 with version
 2.7. Multisite wasn't in core back then, so something like
 `switch_to_blog()` wasn't a concern, but now it breaks if you switch the
 blog in between calls to `clean_term_cache`.

 [attachment:14485.2.diff] removes the static array. It only affects core
 bulk actions and plugins doing multiple calls to wp_term_* in a single
 request.

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


More information about the wp-trac mailing list