Support » Plugin: Contextual Related Posts » High server load

  • Resolved shahaab001

    (@shahaab001)


    Hello, I have been using the plugin since last year, it was running smoothly, but the new update is creating a mess, I have disabled cache in the plugin because I am using w3 total cache, the only problem I face is whenever I clear w3 total cache the server load reach the highest and site responds very slowly, what can be the reason behind it? please help me resolve the issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Ajay

    (@ajay)

    The plugin doesn’t have any links into W3 Total Cache – unless W3TC does something with any WP_Query that is generated.

    What happens if you disable this plugin and clear the cache?

    Is there also a way to check from the W3TC team as to what could be causing the high load.

    Thread Starter shahaab001

    (@shahaab001)

    I disabled the plugin and everything is working normally now, I tried clearing the cache many times but the load average didn’t change, it seems like something is clashing with the cache mechanism of the w3 total cache plugin.

    Plugin Author Ajay

    (@ajay)

    I haven’t used W3TC in a long time, but I recall they used to have different types of caches. If this is still the case, would you be able to enable CRP and then try emptying different caches to see which one could be causing this issue.

    Can I also check how many posts you have on your blog? And, does it make a difference if you enable the CRP inbuilt cache.

    I’m also pushing v3.0.4 which fixes something with the CRP cache but I’m not sure it would make a difference for your site.

    Thread Starter shahaab001

    (@shahaab001)

    We have around 15k Published posts, and we use W3TC for Page Cache only, in my opinion, No performance gain after enabling CRP built-in cache.

    When will the new update be available?

    Plugin Author Ajay

    (@ajay)

    I have uploaded the new one. But, I don’t think it will solve the problem.

    Are you in a position to edit the plugin code to test an alternative?

    https://github.com/WebberZone/contextual-related-posts/blob/v3.0.4/includes/main-query.php#L81

    If so, replace get_crp_posts( with get_crp_posts_id(

    Thread Starter shahaab001

    (@shahaab001)

    I updated the plugin and apply the change that you suggested, but the problem is still the same 🙁

    Plugin Author Ajay

    (@ajay)

    Thanks. That at least eliminates that it is a query issue – which was the main change from the previous version.

    Is there a way to check with W3TC – to see what the page cleaning process is. I’m wondering if there is some filter that the plugin taps into that causes this page load change which gets called with W3TC cleans the cache.

    I’ll install this on my test installs to check but I don’t think I’ll be able to measure server load time.

    Thread Starter shahaab001

    (@shahaab001)

    What to check with W3TC?

    Plugin Author Ajay

    (@ajay)

    I mean the W3TC support. What exactly is cleared in the process that could trigger a server load.

    Separately, if you’re able to test this with 2.9.4 (old version of CRP) it might be helpful. However, before you install it, you’ll need to make sure your site is fully backed up to avoid issues.

    https://wordpress.org/plugins/contextual-related-posts/advanced/

    Thread Starter shahaab001

    (@shahaab001)

    I am using CRP old version 2.9.4 and it is somehow stable but still, the load average slightly goes upward when the cache is cleared https://prnt.sc/y02xzx, I remembered the W3TC plugin was updated 2 weeks ago, and I doubt this issue might be related to W3TC.

    • This reply was modified 2 months, 2 weeks ago by shahaab001. Reason: adding external image source
    Plugin Author Ajay

    (@ajay)

    If its with 2.9.4 as well then it clearly some other clash.

    Are you in a position to test with the older version of W3TC to see if the issue persists.

    Am afraid, it’s hard for me to get into the weeds of W3TC to see what is causing the spike with my plugin active.

    Plugin Author Ajay

    (@ajay)

    I don’t know if it will show up, but are you in a position to install Query Monitor plugin and then try cleaning the cache and seeing if Query Monitor throws up any errors or very slow queries when this happens?

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.