Force caching of the main page




Wordpress LScache Plugin: Force caching of the main page

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello! Tell me, please. I have 3 languages on my site (plugin polylang), all of them are cached by the plugin, except for one main language. For example, I see that the cache works on such a version of /uk, but does not work on such /. How to force caching the main / ? What should I write here ? https://prnt.sc/US33fdc0YH8f , to cache the main page? Thank you. I dont know how this polylang plugin works, but for SEO reason your default language should never have a redirection to a language depending URL like http://www.domain.com/uk. I think this plugin doesnt respect a default language and thats why you cant force caching without language depending URL extension like /uk, because it always redirects. you can use /$ to represent homepage URI only @CacheCrawler Thanks. I tried to register it, but still the page is not cached? In the browser writes: cache-control: no-cache, must-revalidate, max-age=0 content-encoding: br content-type: text/html charset=UTF-8 date: Wed, 13 Jul 2022 09:01:58 GMT expires: Wed, 11 Jan 1984 05:00:00 GMT type= application/json server: LiteSpeed vary: Accept-Encoding x-litespeed-cache-control: no-cache x-litespeed-tag: fc1_tag_priv,public:fc1_HTTP.200,public:fc1_front,public:fc1_URL.6666cd76f96956469e7be39d750cc7d9,public:fc1_F,public:fc1_Po.7,public:fc1_PGS,public:fc1_ x-powered-by: PHP/7.4.30` Also a user of Polylang and when you activate the function to automatically detect a users browser language, Polylang disables the cache on the main landing page. You can also see this in the notice for this Polylang option. yeah , that makes sense , if it detects by browser header or GeoIP , we should also be able to work around that part.



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



Reference