Make WordPress Core

Changeset 37613


Ignore:
Timestamp:
06/01/2016 09:25:46 PM (8 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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r37448 r37613  
    478478    if ( function_exists( 'wp_cache_add_global_groups' ) ) {
    479479        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' ) );
    480         wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
     480        wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
    481481    }
    482482}
  • 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.