[wp-trac] [WordPress Trac] #33875: Comment caching could be improved

WordPress Trac noreply at wordpress.org
Tue Sep 15 00:57:50 UTC 2015


#33875: Comment caching could be improved
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.4
Component:  Comments        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------

Comment (by wonderboymusic):

 In [changeset:"34158"]:
 {{{
 #!CommitTicketReference repository="" revision="34158"
 More bonkers comment cache cleanup: toggle `wp_defer_comment_counting()`
 in `wp_insert_post()` and `wp_insert_attachment()`. Move the cache
 deletion in `wp_update_comment_count_now()` to before the `get_post()`
 call, so that the caches get deleted even if the post has already been
 deleted and the function returns early.

 See #33875.
 }}}

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


More information about the wp-trac mailing list