-
Hi, I’ve been using rank math for about 6 months now, and have noticed that it creates a heavy load on the server using high admin ajax. This is causing some issues with order processing. Is there a way to minimize ajax load?
-
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Can you please confirm if you have a large number of posts/pages on your website? If so, please check if your website’s PHP values are not too low. You can get in touch with your hosting provider and ask them to set the following values.
PHP Memory Limit: 512M Max input time: 150 PHP time limit: 120 PHP max input variables: 1000
If the issue still persists, please install the plugin Query Monitor on your website and look for queries related to Rank Math. This should help us determine what’s causing the slowdown.
You may take a screenshot of it and share it with us here using this tool.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi, following up on this. Can you take a look at advise?
Thanks,
jeffHi! Please see attached 3 images.
1. Showing highest ajax hits https://imgur.com/5LHSBg3 High ajax count
2. Showing the paths of what is processing https://imgur.com/T3bAx8G Culprits
3. My settings for the server (I’ve always had them set at this) https://imgur.com/qXwj1mv server settingsLastly, I have the heartbeat control set at 250 for backend, front and posts.
Further, I have slowed the bot crawl rate to request new pages every 10 seconds. Why did I include this? I was having some heavy load on the server that was causing slowness due to a large amount of bots. I fixed that and then tested the slow queries and found this info about rank math.The biggest thing (and most important thing to me) is that it is causing the order processing to be slow. We put two-and-two together when monitoring the processing speed since. We saw that the load from rank math wsas causing slow woocommerce processes ( https://imgur.com/0OJ8uRk here ), which in turn was the long order processing time.
Thanks for your time!
Jeff
Hello,
Apologies for the delay as this ticket seems to have been stuck in our drafts section for some reason.
To help you investigate this issue, we might need to take a closer look at your website and settings.
Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi, thank you. I updated the first post with the sensitive data. Please be aware this is a live website taking orders.
Thanks for your help,
Jeff
Hello,
We apologize for the delay in response.
We have shared this ticket with our development team and got feedback from them:
As far as they checked, they couldn’t see any traces of AJAX load due to our plugin when visiting the actual website.
However, from your screenshot, it refers to the scheduled actions of our plugin so please go ahead and try applying the filter code below and see if there’s any improvement:
add_filter( 'action_scheduler_pastdue_actions_check_pre', '__return_false' );
with priority:
add_filter( 'action_scheduler_pastdue_actions_check_pre', '__return_false', 20 );
You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.
Hi, I tested it with the snippet and its still around 10-14 seconds for checkout completion. When I disable the plugin it is 3-5 seconds.
Hello,
We have updates from our development team and after checking the Woocommerce endpoint which is the checkout page, we don’t see any difference in the loads.
Could be that this issue may vary from time to time based on internet speed, and server response time. To confirm that, can you please try using a different browser or possibly a different internet connection?
Please note that our plugin doesn’t do much operation for Woocommerce endpoints. We only generate meta for those pages.
We are looking forward to helping you.
Hi,I hired a developer to help me with this so you can close the ticket.
Hello,
Let us know how it goes.
Meanwhile, if you have any other questions, please feel free to ask.
We are here to help you.
You must be logged in to reply to this ticket.