Litespeed not working with WPML secondary domain




Wordpress LScache Plugin: Litespeed not working with WPML secondary domain

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, 1- I have WPML installed using different top level domain per language, Caching and minification work fine on the primary domain however it doesnt work on the other domain. Is ther anything i can do to solve that issue? 2- Also i was wondering if there is anyway to add both domains on cloudflare on that plugin so i can purge the cloudflare cache of both domains (I can see that this plugin only offeer the ability to add 1 cloudflare domain on the CDN tab. Thanks Hi @arabtornado, Please try the following steps: 1) Go to LiteSpeed Cache > Settings > CDN 2) Turn [ON] Enable CDN, add your original URL to CDN Mapping and turn off Include Images, Include CSS, Include JS if you are not using the CDN function. 3) Put all of your domain to Original URLs 4) Save Changes and Purge all cache, then you can see those minify/combine js/css. Thanks for your reply, Please note that my question was consisting of 2 parts, the first part is that i have 2 domain example.net and example.de and im assigning a specific language for each domain using WPML.Caching and minify work fine for my main domain example.de however it doesnt work for my other domain example.net. The second part is about adding both domains to the CDN tab taking in consedration that im using Cloudflare CDN which doesnt use a specific domain or subdomain for the contents served by the cdn?. in other words Cloudflare use this format for links example.net/image.jpg not cdn.example.net/image.jpg I tried what you advised with Cloudflare API option enabled and disabled but that didnt solve anything for me actually, attached a screenshot showing my settings https://snag.gy/TpMwKC.jpg Hi @arabtornado, currently we cannot add two Cloudflare address on our plugin but we will add it to our to-do list. Could you please provide?your Report Number, found in?WP Admin > LiteSpeed Cache > Report, for us to check the first issue? Here you are the report no. YXHADWIK I apology for confusion, I just noticed that the page caching is working fine for the second domain but minifying/compining works only on the main domain. Please also add the domain to Original URLs fields then the minifying/compining should be fixed. Hi @arabtornado, We added multiple Cloudflare domains to our todo. We see this is useful for WPML domains. It will be after v3.0. Thanks for your feedback. Thanks so much that solved the issue. I also really appriciate considering adding mult domain cloudflare support on the upcoming versions. You are welcome. I will mark this topic as resolved. If you have any new question, please dont hesitate to create a new one. Any review (link) will be appreciated. Hi, WPML multi domains compatibility issue is fixed in https://github.com/litespeedtech/lscache_wp/commit/3d9aa5738445b1fff996740dba706e80979709a1 Will be in v2.9.4. No more CDN trick needed. Great, thanks so much btw i left a review too a few days ago



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference