Wordpress LScache Plugin: LS not replacing some of the jpg to webp
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi Im struggling to find a solution to have all background jpgs replaced with webp. site built using DIVI4, LS3 Searching through past post, I found 2 similar issues that 1. conflict between lazyload and webp replace. This does not seem to be the cause, currently both lazyload and webp are enabled, and some of the images are replaced, but not all. I did add the lazyload tag to webp attribute list 2. background images thats in CSS rather than inline style. This is likely part of the cause, however, I have 3 images replaced with webp on the page, all of them are in CSS rather than inline I currently suspect its something to do with how DIVI builder handles global content, as all jpgs not replaced are in Global Elements. i.e. element-002-600?400-1.jpg Having said that, business-01.jpg.webp is replaced and also a global element, but it has parallax effect. My report number TLKLVOQV I also run a debug log in advanced level info. Interestingly, cant see element-002-600?400-1.jpg and other jpgs in it at all, seems LS totally missed them rather than any error in replacing them. The page I need help with: http://graphicsignhire.com.au Hi, Could you please enable advance debug log to your IP , then purge all , access your home page , then go back to log view. It list all the images it encounters and rewrites to webp , and if failed , it will also state the reason for it. Best regards, @CacheCrawler Thanks, I did that before I posted here, but tried again more rigorously. Here are my steps. 1. have the site open per normal and F12 for devtools 2. clear DIVI builder cache and Sucuri cache https://www.elegantthemes.com/blog/tips-tricks/how-to-clear-your-wordpress-cache-a-step-by-step-guide 3. turned off wordfence, sucuri, yoastseo, querymornitor and auditlog, bascially background non visual plugins 3. put cloudflare in maintenance mode and purge everything 4. LS purge all cache 5. chrome empty cache and hard reload as mentioned, result is the same. most of my background image seems to be invisible from LS, no single trace in log. I do see that my logo is not replaced due to my exclude rule I also see the avatar not replace due to no webp existing. I do see business-01.jpg.webp replace successful But I just cant find any trace of element-002-600?400-1.jpg . Its not skipped, or failed, or error, it simply just doesnt exist in the log. And this is 1 of 9 images not replaced. Total 12 images not counting logos and icons, current 3 gets replaced by webp, the other 9 all invisible in log Whats the next step I can take? Optimole does seem to work, but Inot much a fan of duplicate functions. LS cache is really power and does pretty much everything already, if I can fix this?. Hi, Could you please try this : 1. go to toolbox ?> debug setting , set Debug Log to admin IP only , and add your IP into Admin IPs , then set Debug Level to advanced 2. in that same page , click log view in tab list , then refresh the page for once , you will see some log show up. 3. now purge all , and in log view page , click clear log , and keep this window open. 4. open a new windows , enter URL like https://your_domain.com/?test to access your home page. 5. after you accessed home page , now go to log view again in step 3, refresh it for once , you will see more log shows up. please post that log. if log is very long , please use https://paste.ubuntu.com/ Best regards, Some interesting further information Just updated 3.0.8.4, no improvement Tried DIVI options to disable generate static CSS, and enable generate but output style inline in footer, no improvement actived optimole and disabled LS image optimisation, clear purge LS cache. This is the interesting part, optimole can only replace the same 3 images LS can replace, not the other 9. Then I tried to clear DIVI builder cache, hard refresh chrome, then optimole can replace all 12 images I suspect its how DIVI builder handles cache and css that litespeed can not detect Hi, Could you please follow my previous steps and do a debug log ? from log , it will state each image it encounters and webp replacement , and if webp failed , it will state reason. Best regards, @CacheCrawler Ive done the following steps 1. update LS to 3.0.8.5, divi to 4.4.5 2. turned off cloud-flare and purge 3. cleared DIVI builder cache 4. LS log view clear log 5. set debug log to ON (setting admin IP only does not generate log) 6. purge all and reload heres the log https://paste.ubuntu.com/p/B9tHYgZc8r/ @CacheCrawler Just realised that some of the webp files are missing, Ive since did a re-run of image optimization to pull them. Can confirm that all the webp are there via file manager. But still element-002-600?400-1.jpg not replaced. Also sorted the Admin IP, didnt realise my IP has changed. Hi, May I know which page contains this element-002-600?400-1.jpg ? Best regards, @CacheCrawler Its the home page full file name graphic-sign-hire-element-002-600?400-1.jpg Hi, If you search in your HTML source code of that page, you couldnt find this file name , which means it is loaded after main HTML process (by CSS or JS ?etc) in this case, LSCWP can not filter the output and replace it. https://i.imgur.com/hiVrvqg.png Best regards, @CacheCrawler yes, it is loaded in CSS as background images. Does LS has any plans to support CSS replacing or is there any workaround? Hi, We do have a plan on webp improvement , but currently I dont have much more detail info about it. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference