[wp-trac] [WordPress Trac] #10427: The 'recent comments' widget needs to flush its cache on transition_comment_status events

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 16 22:34:56 UTC 2009


#10427: The 'recent comments' widget needs to flush its cache on
transition_comment_status events
--------------------------+-------------------------------------------------
 Reporter:  josephscott   |        Owner:  azaozz
     Type:  defect (bug)  |       Status:  closed
 Priority:  normal        |    Milestone:  2.9   
Component:  Widgets       |      Version:  2.8.1 
 Severity:  normal        |   Resolution:  fixed 
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by azaozz):

 `transition_comment_status` is called together with
 `wp_set_comment_status` and runs only when the status changes. Seems the
 right hook to clear cache.

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


More information about the wp-trac mailing list