[wp-trac] [WordPress Trac] #36906: Comment caches should be persistent

WordPress Trac noreply at wordpress.org
Wed Jun 1 21:55:21 UTC 2016


#36906: Comment caches should be persistent
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.6
Component:  Comments      |     Version:  2.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  performance
--------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"37614"]:
 {{{
 #!CommitTicketReference repository="" revision="37614"
 Use `clean_comment_cache()` in `wp_insert_comment()`.

 Previously, only the 'last_changed' incrementor was manually invalidated,
 since
 the newly created comment did not yet exist in the cache. However, this
 created
 an inconsistency with the other comment CRUD functions, which result in
 the
 'clean_comment_cache' action firing.

 Props spacedmonkey.
 See #36906.
 }}}

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


More information about the wp-trac mailing list