• 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 15 replies - 1 through 15 (of 25 total)
  • Would you share the link to your site with us?

    Thread Starter thejojk

    (@thejojk)

    Forgot the website ??
    https://curiousjoe.se

    The cache is not active at the moment

    Add this code at the very top of your .htaccess. This code generates different cache copies depending on selected language. This code will most likely solve your problem, but you will have a new problem because the additional cache varies means that the cache can no longer be warmed up because the crawler is not designed for this configuration. Solution? There is none.

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

    (@thejojk)

    What does ”?the additional cache varies means that the cache can no longer be warmed up” mean?

    You know what cache warmup mean?

    Thread Starter thejojk

    (@thejojk)

    Sorry. No, I do not know

    You know that a URL must be requested to cache the URL, right?

    Thread Starter thejojk

    (@thejojk)

    Yes ??

    Sorry, I must ask this!

    And you know that the cache plugin has a crawler. You know what this crawler is good for?

    Thread Starter thejojk

    (@thejojk)

    Yes. To crawl the site

    And why does it crawl the site?

    Thread Starter thejojk

    (@thejojk)

    To cache the files

    Exactly! This process means “cache warmup”. Now clear?

    With polylang plugin you have a 3rd party plugin that needs additional cache varies to get language selection work. The crawler doesn’t know this plugin and that’s why the crawler can’t warmup the cache for different languages.

    Thread Starter thejojk

    (@thejojk)

    Ok. Got it! So the cache will slowly build up as peoples start to visit pages?

    since curiousjoe.se/sv is one language and curiousjoe.se the other. Can I give these to the crawler?

    Ok. Got it! So the cache will slowly build up as peoples start to visit pages?

    Yes.

    since curiousjoe.se/sv is one language and curiousjoe.se the other. Can I give these to the crawler?

    No, the crawler uses the sitemap for crawling.

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