[wp-trac] [WordPress Trac] #34421: Not all code removed responsible for comments caching in Recent Comments widget
WordPress Trac
noreply at wordpress.org
Fri Oct 23 23:55:01 UTC 2015
#34421: Not all code removed responsible for comments caching in Recent Comments
widget
-------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
As we all know - '''in 4.4.0, Fragment caching for comments was removed in
favor of split queries.'''
But in the `\wp-includes\widgets\class-wp-widget-recent-comments.php` line
104 we have
{{{
// Prime cache for associated posts. (Prime post term cache if we need it
for permalinks.)
$post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) );
_prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure'
), '%category%' ), false );
}}}
I'm not sure what this code does but it is related to caching.
DO we need to remove this code?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list