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

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


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

Comment (by spacedmonkey):

 I think this was long before the clean_comment_cache function was
 implemented. In my patch, I implement clean_comment_cache in
 wp_insert_comment. The last changed value is changed, but the create
 function should also call the cache clear. All other insert functions do
 this (such as clean_post_cache) and it just makes sense. When looking into
 the code, I was surprised to see that everything I thought that was needed
 for the persistent was in place. I think it's time.

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


More information about the wp-trac mailing list