-
Notifications
You must be signed in to change notification settings - Fork 20
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
Too many AJAX requests from wp admin backend #309
Comments
Running into the same issue and did some research. I'm not sure if it is the same in your case, but I noticed a lot of requests originating from a yoast-acf-analysis/js/src/cache/cache.attachments.js Lines 4 to 21 in 4c62254
While editing posts, As a temporary solution, I've manually changed the
to:
|
This continues to cause performance issues, it would be nice if the @Yoast team would fix this. I think my colleague @rvdsteege has already provided the solution. Because of this issue, |
Please give us a description of what happened.
It seems that we are doing a lots of AJAX requests from the admin backend when this plugin is enabled.
It causes abnormal >1000% CPU load.
We already removed image and gallery field types from scoring as described below - it reduced ajax requests but it didn't fix this problem 100% =>
add_filter( 'yoast-acf-analysis/blacklist_type', function ( $blacklist_type ) {
$blacklist_type->add( 'image' );
$blacklist_type->add( 'gallery' );
return $blacklist_type;
});
Please describe what you expected to happen and why.
We are expected to reduce ajax requests.
As a possible solution we want to try to Change refresh rate as described in your documentation =>
add_filter( 'Yoast\WP\ACF\refresh_rate', function () {
// Refresh rates in milliseconds
return 3000;
});
But we need to know what is the default value (1000?), min and max values and how to easily check in browser current value of 'refresh_rate' to see that our changes applied successfully.
How can we reproduce this behavior?
Technical info
The text was updated successfully, but these errors were encountered: