wp/wp-includes/class-wp-network.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/class-wp-network.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-network.php	Tue Sep 27 16:37:53 2022 +0200
@@ -353,17 +353,13 @@
 		 */
 		$using_paths = true;
 		if ( wp_using_ext_object_cache() ) {
-			$using_paths = wp_cache_get( 'networks_have_paths', 'site-options' );
-			if ( false === $using_paths ) {
-				$using_paths = get_networks(
-					array(
-						'number'       => 1,
-						'count'        => true,
-						'path__not_in' => '/',
-					)
-				);
-				wp_cache_add( 'networks_have_paths', $using_paths, 'site-options' );
-			}
+			$using_paths = get_networks(
+				array(
+					'number'       => 1,
+					'count'        => true,
+					'path__not_in' => '/',
+				)
+			);
 		}
 
 		$paths = array();