Make WordPress Core


Ignore:
Timestamp:
06/01/2016 09:25:46 PM (10 years ago)
Author:
boonebgorges
Message:

Make the 'comment' cache group persistent.

'comment' was made non-persistent in [7986], to address the difficulty of
reliable cache invalidation. Since then, the comment system has improved such
that we can be more confident that caches are being busted as needed.

Props spacedmonkey.
Fixes #36906.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r37518 r37613  
    767767                                wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) );
    768768                        }
    769                         wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
     769                        wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
    770770                }
    771771        }
     
    838838                                wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) );
    839839                        }
    840                         wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
     840                        wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
    841841                }
    842842        }
Note: See TracChangeset for help on using the changeset viewer.