Wordpress LScache Plugin: LiteSpeed cache of css and js files not being served locally
Last Updated on: Wed, 15 Apr 2026 00:00:02 Maybe a little cryptic topic title however: when using a multilanguage solution like Polylang, local css and js files are still being served from the primary domain. This results in extra unnessecary requests to the primary domain. For instance: when the primary domain is test.com and a multilingual website has been created with Polylang at test.eu, the css and js files of the .eu domain will be served from the .com domain. When you go to test.eu, the Request URL looks like this: https://test.com/wp-content/litespeed/cssjs/72fc4.css?6876b. Could this be fixed? Hi, please try add this at top of your wp-config.php , purge all , see how it goes if (strpos($_SERVER[HTTP_HOST], test.eu ) !== false) define( LITESPEED_STATIC_URL, https://test.eu/wp-content/litespeed ) replace both test.eu to your actual domain Best regards, Oops, sorry for my late reply But ok? that was quite a quick fix. Works like a charm and thank you so much!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference