Support » Plugin: PageSpeed Ninja » Woocommerce excluding settings

  • underro

    (@underro)


    Hi there.
    Today I started using Pagespeed Ninja.
    After the first settings, moderate, I have the best score, from everything I’ve tested so far.
    Now, I want to exclude cart, my-account and checkout, but I do not understand how to proceed with this plugin. Also, should something else be excluded for woocommerce here,… like “mfunc” …? If so, what and how.
    We did not find any specific information for woocommerce.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Denis Ryabov

    (@dryabov)

    To disable caching of cart, try to add following code to theme’s functions.php file:

    if (function_exists('is_cart') && is_cart() && !defined('DONOTCACHEPAGE')) {
        define('DONOTCACHEPAGE', 1);
    } 
    Thread Starter underro

    (@underro)

    OK. Thank you for answer.

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