Wordpress LScache Plugin: languages on subdomains ? caching root domain
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, the plugin caused the cache to redirect from https://mydomain.com to https://en.mydomain.com/?fbclid= [?] these are 2 incorrect behaviors: ? disabling language detection and redirect all users to specific language ? redirect root domain (direct traffic) to URL which contain fbclid param. Is there any chance to exclude root domain from caching? Hi @damian1923, could you please provide?Report Number? Also, may I know how does your server installed GEO Location plugin and able to get the GEO Location IP on environment variable? For excluding root domain from caching, you can add the URL with $ to the END to Setting > Exclude > Do Not Cache URIs, but its better to use GeoLocation caching for better performance. If I add this line ^/$ to exclusion rules, all the subdomains homepage will be disabled from cache becose Litespeed uses $_SERVER[ REQUEST_URI ] and do not recognize subdomains. 1923. 1923. @damian1923, you are right, please try to put the following method on themes function.php to set the speicific URL exclusion: if ( method_exists( LiteSpeed_Cache_API, set_nocache ) ) $actual_link = http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI] if ( $actual_link === http://YOUR_ROOT_URL/ ) LiteSpeed_Cache_API::set_nocache( Disable root URL from cache ) It seems to work fine, thanks Stanley. DJ.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference