• Resolved jaysnl

    (@jaysnl)


    After trying to debug every plugin that i have available, and why none-of my pages would be cached, i tried the following:

    – Enable WP Rocket debugging:
    > Installed WP Rocket | Constants Debug Helper
    > Logs: constant DONOTCACHEPAGE is true
    – Changing themes
    > Logs: constant DONOTCACHEPAGE is true
    – Disabling all (3rd party) plugins besides WooCommerce
    > Logs: constant DONOTCACHEPAGE is true
    – Disabeling WooCommerce
    > Logs: constant DONOTCACHEPAGE is false
    – Changing line 175 in class-wc-cache-helper.php to
    > wc_maybe_define_constant( ‘DONOTCACHEPAGE’, false );
    > Logs: constant DONOTCACHEPAGE is false

    To my believe this makes caching pretty much unavailable if every page that’s loaded – even a home page – get flagged as DONOTCACHEPAGE, true.

    Anybody with a fix or an idea how the hell this is possible?

    • This topic was modified 7 years, 1 month ago by jaysnl.
    • This topic was modified 7 years, 1 month ago by jaysnl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    I can confirm that updating to WooCommerce 3.2.1 broke caching with Wp-Rocket 2.10.9. I have two identical development sites. I update WooCommerce on one and noticed nothing was being cached. I then noticed that the second site that hadn’t yet been updated was caching fine. I then update the WooCommerce on the second site and noticed the same cache issue as the first.

    I don’t have an answer, but I suspect Woo will take note of the issue as will Wp-rocket. Fortunately, my site is still in development, so I will just wait it out and revert back via backup for time being.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘DONOTCACHEPAGE. Woocommerce 3.x.x Enables DONOTCACHEPAGE globally’ is closed to new replies.