• Resolved thejojk

    (@thejojk)


    I have installed Lightspeed cache on my webshop that has 2 languages via polylang. I then saw that the languages got mixed on pages, how can I set upp lightspeed to works as expected?

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter thejojk

    (@thejojk)

    Ok. And the site map can not be modified? I have not tried yet but I also have a currency selector on the site. Sounds like the cache will take long time to build up and be quite large…

    The sitemap isn’t the problem and could certainly be expanded, but that doesn’t solve the problem. So that there is no mixing of languages, the cookie with different values for each selected language is required. In order for the crawler to warmup the correct cache for each language, it needs this cookie. The crawler simulates the request of natural users and therefore he needs the cookie. Technically this is not a problem at all, but the built-in crawler is not designed for this.

    Thread Starter thejojk

    (@thejojk)

    Ok. Thanks for your help, appreciate it!! Will try your suggestion.

    Thread Starter thejojk

    (@thejojk)

    I have now tried the code

    RewriteRule .* - [E=cache-vary:pll_language]

    I still have issues with mixed languages… any other idea?

    I remember that a few weeks ago another user had the same problems. However, the problem was not solved here in the forum. The plugin support @qtwrk should take care of it.

    Hi,

    I’m interested in this conversation, which is why I’m taking the liberty of intervening.
    I also use polylang, and I never had problem with LS with polylang.

    Perhaps, it’s because I have set up polylang to use permalink well separated:
    In my case, second language is english, so url are like this: domain.tld/en/….
    (for primary language, just domain.tld/….)

    Sitempap is working well with this, so LS crawler also, and no issue with mixing language at all.

    My 2 cents…
    Best regards

    Thread Starter thejojk

    (@thejojk)

    I have configured the same way, but get parts of the page mixed up, could be filter in English but meny in Swedish…

    @joy0114

    Did you enable the Guestmode?

    Hi,

    I don’t use Guestmode. It could be the reason, indeed !

    And when I use personal filters in functions.php, I make sure to test the current language with a “if”, before displaying something.
    For example:
    if(pll_current_language() == 'fr'){......}
    or
    if(pll_current_language() == 'en'){......}

    or just with this : $text = pll__(‘Bla-bla-bla’);

    But, if you post on LS forum, I suppose that it works normally without caching.

    Litespeed experts will know best than me how to answer you.

    Best regards

    @joy0114 @serpentdriver Thanks for your input and the help on this issue.

    @thejojk This type of issue is not quite generic for us at this moment. We don’t often hear about polylang from our users in the past. So if it’s a compatibility issue, please open a ticket by emailing to support@litespeedtech.com with further details. Likely our team member needs to access your site admin to investigate on this.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Lightspeed cache vs language (polylang)’ is closed to new replies.