• Resolved paam30

    (@paam30)


    Hi,

    I have a multi-language website. My home page are the same in the 2 languages. The main language is English and the second language Portuguese. My concerned is that the home page in english is much slower than the home page in portuguese.

    I compare both pages and the only think that is diferent is this:

    English page:

    <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 520/1295 objects using Disk Page Caching using Disk: Enhanced (DONOTCACHEPAGE constant is defined) Content Delivery Network via N/A Lazy Loading

    Portugueses page:

    <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 619/1135 objects using Disk Page Caching using Disk: Enhanced Content Delivery Network via N/A Lazy Loading

    What am I doing wrong? is this ok?

    I need to improve site performance.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @paam30

    Thank you for reaching out and I am happy to help!
    As you can see in the HTML output you shared:
    Page Caching using Disk: Enhanced (DONOTCACHEPAGE constant is defined)

    This means that some plugin or theme is adding: define('DONOTCACHEPAGE', true); or it was added manually to the theme template used for the homepage.
    In this case, the W3 Total Cache Page Caching cannot kick in because the constant is saying that this page should not be cached.
    Please check this with your theme developer and remove the constant, so that Page Caching can work in the English version of the website.

    Thanks!

    Thread Starter paam30

    (@paam30)

    Hi Marko,

    Thank you so much for your help.

    I found out the “guilty” plugin is polylang. The plugin has a setting “Detect browser language – When the front page is visited, redirects to itself in the browser preferred language. As this doesn’t work if it is cached, Polylang will attempt to disable the front page cache for known cache plugins.”

    If I disable this function both home pages have more or less the same performance. But is not a solution to disable this function. I found in some old posts that there is no workaround. But the posts were 2 years old. Is there a workaround nowadays? any ideas on how to solve this?

    Thanks in advance

    Paula

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @paam30

    The only way for the Page Caching to kick in is to remove the mentioned constant.
    I am not sure which posts you are referring to for the workaround so please share the links to those

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DONOTCACHE’ is closed to new replies.