[wp-trac] [WordPress Trac] #22024: The query cache in WP_Comment_Query:query() is not invalidated when comments are added

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 28 12:47:33 UTC 2012


#22024: The query cache in WP_Comment_Query:query() is not invalidated when
comments are added
--------------------------+---------------------
 Reporter:  ryan          |       Owner:  ryan
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  Comments      |     Version:  3.4.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [22080]:
 {{{
 #!CommitTicketReference repository="" revision="22080"
 Invalidate the WP_Comment_Query:query() cache when comments are added.
 Switch last_changed to a counter incremented via wp_cache_incr().

 fixes #22024
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22024#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list