Wordpress LScache Plugin: CCSS and UCSS with mobile
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, I use beta release (dev) and I am really impressed with this release. Well done !But Ive got an issue with mobile version of my website. When I ask for generating ccss and ucss, I think Litespeed generate these files for desktop and not for mobile. Then with a mobile, it lacks the hamburger menu which is in display:none in the css used for desktop. How could I solve this problem ? Thanks a lot for any help. Best regards For informations: After enabling Mobile Cache , I made this: 1. on admin bar drop down menu -> purge all ? Critical CSS 2. purge all Then, with a pc, I visited some pages. After that, I force cron in order to generate CCSS and UCSS for these visited pages. Then I went back to these pages, but when I display these pages with the firefox tool adaptative view (for simulating a mobile), no chance: hamburger menu is not there ? Did I forgot something ? By the way, I suppose that the menu entry purge all ? Critical CSS also concerns UCSS ? Im right ? Thanks Hi, Did you enable cache mobile ? Best regards Hi Qtwrk, Yes, Cache Mobile is enabled, CCSS was purged, and ALL was purged. Navigator cache was also purged. I think its also affect elements which are not loaded when displaying page: For example, on desktop and on mobile, Ive got a button which, on demand, displays an off-canvas menu for refining a selection of products. When CCSS is generated for pages which contains this button, this button does not work anymore on these pages. Do you you want I give you the url for testing, perhaps it will be more explicit ? Thanks Best regards Hi, I think I might have some idea , but still , please try : 1. make sure you have enabled mobile (which I think youve already done it) 2. make sure you did purge all and also clicked purge all Critical CSS (which youve also done it ) 3. go to FTP or file manager or SSH , anything you can access to file system , delete everything in /wp-content/litespeed/ucss and /ccss 4. now visit pages to trigger the generation , manual cron it if necessary 5. now please also provide me the report number , you can get it in toolbox -> report -> click send to LiteSpeed Best regards, Hi, Thanks for your answer. My report is: WGLLXKZS I strictly executed your instructions from a desktop pc (it seems to be executed correctly as /wp-content/litespeed/ucss and /ccss did not exist anymore after this purge). From a pc, and disconnected (as a normal visitor), and after flush navigator cache, I navigate on some pages, I went back to backoffice to connect as admin. Then I generated , first UCSS (as it appears in first in config page), and secondly I generated CCSS. I closed session as admin and I visited these pages with the same pc. hummm? some things do not work anymore: button for Off-Canvas to refine selection of products, header menu bar does not shrink no more when scrolling, and cart overview is messed up (too much big images inside it). If I visit other pages , not optimized, no problem. I tried with a true mobile phone (I thought adpative view for firefox dev tools, perhaps, did not send a new mobile user-agent ???), with navigator cache flushed: ?Home page (and other optimized pages) do not show hamburger menu (appears on page which have not been optimized). ?button for refine selection (call to off-canvas section) does no show off canvas and block scrolling the page. Its necessary to refresh page to be able to scroll page. I notice that /wp-content/litespeed/ucss and /ccss do content the same number of optimized page. Do I have to understand there are not created for desktop AND mobile (2 times for each page) ? Thanks a lot for clarifying my thoughts because Its quite not clear for me. Best regards Hi, ideally , when you enable mobile cache , there should be 2 different CCSS/UCSS, like one for mobile page, one for desktop page but however, from what I see from your report your provider is using Apache + LiteSpeed ADC , in this case , the mobile vary rule needs to be placed onto ADC vhost , otherwise the cache vary wont work properly and may result in weird/unexpected result. Best regards, Hi qtwrk, Ok, I understand now. Indeed, just one CCSS/UCSS by page. For the moment Im going on with my provider, but now, I now know how important it is to choose the right provider, with right software server. Thank you very much for these very clear explanations. Anyway, you realize a great work with this plugin. Thanks. Best regards
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference