• Resolved martinambrus

    (@martinambrus)


    We’ve been having some troubles with our site going down at times and upon debugging, it seems that this plugin is making a lot of requests for every single WC products listing page we open.

    Our log shows about ~200 sub-requests for each page load and this issue dissapears if we disable this plugin.

    We’ve only been able to track this down by enabling XDebug with auto-connecting, so in our PHP error log, we’ve seen a lot of XDebug messages (rightfully saying that it couldn’t connect to the debug server after 200ms) per each page display.

    Could you please shed some light as to what could be causing it in your plugin and how this can be mitigated?

    If you need more information (for example about WC version, plugins etc.), please don’t hesitate to ask.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please drop me exact link to the issue

    The plugin can make one or two ajax requests, but not 200

    Thread Starter martinambrus

    (@martinambrus)

    Hi,

    thanks for the quick response. This issue is not about AJAX requests, which is why it’s so strange. This is about 200 PHP processed being spawned. It may be related to a hook/action that’s being called multiple times from some other plugin or WC itself maybe? We have an old WC on the site which is 4.9.0 – could that be an issue?

    I can’t really link you to the website but that wouldn’t help in this case anyway, since it’s not about AJAX requests.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Each product has several hooks before display, my plugin uses one of the hooks to convert prices. But this is just a function call with a mathematical operation

    Thread Starter martinambrus

    (@martinambrus)

    ok, this was at the end a misconfiguration of XDebug, so it tried to start a debug session for even each image being loaded in the browser… so nothing to do with your plugin at the end

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Ok. Great!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘200 requests on single page load’ is closed to new replies.