Rank Math Strip Category Base Slows down Backend when Object Cache is enabled!

#728029
  • Resolved Nishit Agrawal
    Rank Math free

    In recent times, I noticed my wp-admin backend had gotten very slow taking 15 seconds to load everytime. After I turned off the Redis Object Cache the problem was solved however the Redis object cache was configured correctly as per the hosting company. Hence for further debugging I started disabling plugins one by one and when I disabled the Rank Math plugin the Object Cache starting working correctly and backend was back to fast speed. Further playing with setting led me to the culprit being the following option: Woocommerce Module -> remove base and remove category base options cause redundant HTTP API calls being made for wordpress core and other plugins for update checks every time a page is loaded leading to slow backend. As soon as the options are turned off the HTTP API calls are not made anymore. I have replicated this in a fresh install as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I’m sorry to hear about the issue you’re facing with the Rank Math plugin. Thank you for bringing this to our attention. It seems that the “Remove Base” and “Remove Category Base” options in the WooCommerce module are causing redundant HTTP API calls, which slow down the backend.

    I understand that you’ve already identified the cause of the issue. To address this problem, you can use a filter provided by Rank Math to disable the custom product redirection. You can add the following code to your rank-math.php file or your theme’s functions.php file:

    /**
     * Filter to disable custom product redirection.
     */
    add_filter( 'rank_math/woocommerce/product_redirection', '__return_false' );

    This filter will help you disable the custom product redirection and should resolve the issue with the redundant HTTP API calls.

    If you need further assistance or have any other questions, please feel free to ask.

    Sources:
    How to Disable Custom Product Redirection in Rank Math » Rank Math
    How to Remove the Category Base From WordPress » Rank Math
    Rank Math General Settings

    Hello,

    Thank you for contacting Rank Math support.

    The permalink watcher for WooCommerce runs on every request to WooCommerce because it’s a watcher class and it clears the cache to make sure that the permalinks are flushed and the pages load as expected.

    However, it shouldn’t slow down the speed of your site. There must be some other plugin conflicting with the functionality and causing this issue. One such plugin is WPLoyalty. If you are using it, then you should get in touch with their team as the issue is not specific to the Rank Math plugin; you’ll notice this problem with other plugins as well that offer similar functionality, such as Premmerce Permalink Manager.

    If you’re not using that plugin then you can use the following guide to figure out which plugin is causing the issue: https://rankmath.com/kb/check-plugin-conflicts/

    Let us know how that goes. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Rank Math Strip Category Base Slows down Backend when Object Cache is enabled!’ is closed to new replies.