Title: Lightspeed cache vs language (polylang)
Last modified: January 17, 2023

---

# Lightspeed cache vs language (polylang)

 *  Resolved [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/)
 * 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)

1 [2](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/page/2/?output_format=md)

 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382656)
 * Would you share the link to your site with us?
 *  Thread Starter [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382672)
 * Forgot the website 😉
   [https://curiousjoe.se](https://curiousjoe.se)
 * The cache is not active at the moment
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382694)
 * 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.
 *     ```wp-block-code
       RewriteRule .* - [E=cache-vary:pll_language]
       ```
   
 *  Thread Starter [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382757)
 * What does ” the additional cache varies means that the cache can no longer be
   warmed up” mean?
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382763)
 * You know what cache warmup mean?
 *  Thread Starter [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382787)
 * Sorry. No, I do not know
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382795)
 * You know that a URL must be requested to cache the URL, right?
 *  Thread Starter [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382799)
 * Yes 🙂
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382803)
 * 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](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382805)
 * Yes. To crawl the site
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382807)
 * And why does it crawl the site?
 *  Thread Starter [thejojk](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382808)
 * To cache the files
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382821)
 * 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](https://wordpress.org/support/users/thejojk/)
 * (@thejojk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382835)
 * 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?
 *  [serpentdriver](https://wordpress.org/support/users/serpentdriver/)
 * (@serpentdriver)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/#post-16382844)
 * > 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)

1 [2](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/page/2/?output_format=md)

The topic ‘Lightspeed cache vs language (polylang)’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 25 replies
 * 4 participants
 * Last reply from: [usabe](https://wordpress.org/support/users/usabe/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/lightspeed-cache-vs-language-polylang/page/2/#post-16419909)
 * Status: resolved