• Resolved kees78

    (@kees78)


    Hi,

    I have a wordpress website and noticed the backend became suddenly very slow. I installed the plugin Query Monitor and noticed an http api request took a very long time to finish. The request is cmplz_cookie_admin->run_cookie_scan() and takes almost 5 seconds to finish. It does have a 200 OK status but 5 seconds is a lot. I deactivated my wordpress defence plugin (wordfence) but to no resolve. If i deactivate the plugin the site backend is a lot faster. What to do?

Viewing 1 replies (of 1 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @kees78

    This is the Cookie Scan. The plugin requests a page (with wp_remote_get()), and retrieves the HTML of the site so the plugin can scan for services, statistics scripts etc.

    The Cookie Scan can not slow down your website for visitors, as it only runs on the admin, for a logged in administrator. Visitors will not get this request.

    The cookie scan does 5 pageloads in a row until the scan is completed. Scanning could take longer than usual if:

    – you have a large site (meaning a lot of pages)
    – or you’re only logged in short periods of time, which gives the plugin insufficient time to complete the job

    In both cases, my recommendation would be to leave your site open in the browser, logged in, for a while, to let it complete. Only you as the admin will see the request.

    Alternatively, you can completely disable the cookie scan by adding the following line to your wp-config.php.

    define('CMPLZ_DO_NOT_SCAN', true);

    Disabling it in the settings is also possible & will stop it from starting automatically in the future, but will not stop a current run, so using the above constant will be the most effective.

    Let me know if you have any questions about this. Kind regards, Jarno

Viewing 1 replies (of 1 total)
  • The topic ‘Complianz makes backend slow’ is closed to new replies.