Multisite install causing slowdown with switch_to_blog
-
On my staging network, I try to activate for one site only.
web@staging:/var/www/zzz$ wp plugin deactivate cf-images --network
Plugin 'cf-images' network deactivated.
Success: Network deactivated 1 of 1 plugins.
web@staging:/var/www/zzz$ wp plugin activate cf-images --url=zzz
Plugin 'cf-images' network activated.
Success: Activated 1 of 1 plugins.
OK, so it overrides that and installs network-wide. This is an issue because it causes page loads of around 10 seconds. Query Monitor shows 1398 requests from this plugin usingswitch_to_blogandrestore_current_blogswitch_to_blog(1)87 → 1+
CF_Images\A\M\Multisite->network_settings()
Plugin: cf-imagesrestore_current_blog()87 ← 1+
CF_Images\A\M\Multisite->network_settings()I’ve tried with “Network wide settings” option enabled and disabled but same issue. This is with version 1.9.5 on WP 6.8.1 and PHP 8.4.2.
The topic ‘Multisite install causing slowdown with switch_to_blog’ is closed to new replies.