Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuning the plugin #6

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Tuning the plugin #6

merged 1 commit into from
Nov 20, 2024

Conversation

soderlind
Copy link
Owner

  • Make plugin faster by using $site->__get( 'siteurl' ) instead of get_site_url( $site->blog_id ). This prevents use of switch_to_blog() and restore_current_blog() functions. They are expensive and slow down the plugin.
  • For wp_remote_get, set blocking to false. This will allow the request to be non-blocking and not wait for the response.
  • For wp_remote_get, set sslverify to false. This will allow the request to be non-blocking and not wait for the response.

- Make plugin faster by using `$site->__get( 'siteurl' )` instead of `get_site_url( $site->blog_id )`. This prevents use of `switch_to_blog()` and `restore_current_blog()` functions. They are expensive and slow down the plugin.
- For `wp_remote_get`, set `blocking` to `false`. This will allow the request to be non-blocking and not wait for the response.
- For `wp_remote_get`, set `sslverify` to `false`. This will allow the request to be non-blocking and not wait for the response.
@soderlind soderlind merged commit 195bc89 into main Nov 20, 2024
@soderlind soderlind deleted the update branch November 20, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant