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

WordPress Trac noreply at wordpress.org
Tue Sep 15 09:45:33 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 westi):

 Replying to [comment:1 wonderboymusic]:
 > In [changeset:"34131"]:
 > {{{
 > #!CommitTicketReference repository="" revision="34131"
 > The "counts" cache for comments by post id is never invalidated. Neither
 `wp_update_comment_count()` nor `wp_update_comment_count_now()` touch the
 cache.
 >
 > Adds unit test.
 > See #33875.
 > }}}

 I thought that these counts were non-persistent and that was why we didn't
 both invalidating the cache because it only lasted for the current page
 load.

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


More information about the wp-trac mailing list