[wp-trac] [WordPress Trac] #22526: Changing category doesn't invalidate cache

WordPress Trac noreply at wordpress.org
Tue Feb 11 16:49:13 UTC 2014


#22526: Changing category doesn't invalidate cache
-----------------------------------------------+---------------------------
 Reporter:  Whissi                             |       Owner:
     Type:  defect (bug)                       |  wonderboymusic
 Priority:  normal                             |      Status:  closed
Component:  Cache API                          |   Milestone:  3.9
 Severity:  normal                             |     Version:  3.4.2
 Keywords:  has-patch needs-docs dev-feedback  |  Resolution:  fixed
                                               |     Focuses:
-----------------------------------------------+---------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"27163"]:
 {{{
 #!CommitTicketReference repository="" revision="27163"
 Partially revert [27101], [27102], [27141], and [27142]. Those commits
 introduced new functions to sync up cache invalidation events. The current
 commit alters existing internals.

 "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."

 This solution is simpler. All unit tests pass. Removes unnecessary tests
 linked to removed functions.

 Props kovshenin.
 Fixes #14485, #22526.
 }}}

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


More information about the wp-trac mailing list