• Hi there,

    I have noticed that caching (I am using W3 total cache) doesn’t work properly if the “Detect browser language” is enabled. The pages in Swedish on my webpage are cached but not the English ones. It seems like Polylang sets the constant DONOTCACHEPAGE. Is there a way to disable this constant or to make caching work with the “Detect browser language” enabled?

    Thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    It’s not possible to have both. The “Detect browser language” requires that PHP is executed to work. So it’s not compatible with a cached page. That’s why when you activate this option, Polylang sets the constant DONOTCACHEPAGE on the main home page.

    Ideally such feature should be done directly at server level (for example with .htaccess), but it’s out of the scope of our plugin.

Viewing 1 replies (of 1 total)

The topic ‘Polylang DONOTCACHEPAGE constant’ is closed to new replies.