Networks and Sites: Remove duplicate cache entry.

Remove the `networks_have_paths, site-options` cache entry as it duplicates caching within the `WP_Network_Query` class.

Props uday17035, spacedmonkey, johnbillion, johnjamesjacoby.
Fixes #42070.



git-svn-id: https://develop.svn.wordpress.org/trunk@53083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2022-04-06 04:33:50 +00:00
parent 18a6ec7048
commit b72c1d00ae
2 changed files with 7 additions and 13 deletions

View File

@@ -1173,8 +1173,6 @@ function populate_network_meta( $network_id, array $meta = array() ) {
wp_cache_delete( $network_id, 'networks' );
}
wp_cache_delete( 'networks_have_paths', 'site-options' );
if ( ! is_multisite() ) {
$site_admins = array( $site_user->user_login );
$users = get_users(