• Resolved aaronwongxm

    (@aaronwongxm)


    After upgrading to wpdiscuz 7.6.43, we noticed a spike in CPU utilisation. This was because of a significant increase in AJAX requests.

    In 7.6.43, every page visit there’s an ajax call for “wpdnonce” where the response is a wpdiscuz cookie, this would explain the increase in ajax calls and the corresponding increase in cpu utilisation since ajax goes straight to the origin lightsail server

    I reverted the plugin version on staging site to 7.6.38 which was the version prior to the update. Upon checking, we can see the difference is that no AJAX calls are made by wpdiscuz upon page loads, confirming that the plugin update was responsible for the change in behaviour, increase in AJAX calls, and subsequent increase in CPU utilisation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi,

    We’ll check and get back to you ASAP.

    Plugin Support gVectors Support

    (@gvectorssupport)

    Please follow the steps below:

    1. Update the wpDiscuz plugin to the latest version (v7.6.45).
    2. Add the hook code to your active theme’s functions.php file: add_filter('wpdiscuz_validate_nonce_for_guests', '__return_false');
      Instruction:
      https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/
    3. Clear all caches and check again.
    Thread Starter aaronwongxm

    (@aaronwongxm)

    If possible, I would like to avoid modifying any PHP code on the instance as it will increase the management efforts and may complicate troubleshooting in the future.
     
    Could i check if you have plans to enable this option within the settings menu in a next version?

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi @aaronwongxm ,

    No need any PHP modifications. Adding a new line in functions.php of child theme is common practice, you’re adding, you don’t do any modification that could be overwritten with updates.

    As an alternative you can do a hook configuration with a code snippet. You can use Code Snippets plugin to put this code in that:

    add_filter('wpdiscuz_validate_nonce_for_guests', '__return_false');

    I’m sorry but we’re not planning to add such setting option in the near future versions.

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

You must be logged in to reply to this topic.