Slow image replacement to webp




Wordpress LScache Plugin: Slow image replacement to webp

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi I have a problem with the speed of image replacement to webp. Whenever someone visits the website, it takes more than 5 seconds to load it for the first time. When guest mode kicks in, it takes over 10 seconds to fully load the site. Full debug is enabled, and it looks like image replacement to webp takes up to 8 seconds with guest mode. First load: 11/26/22 11:27:07.047 [x.x.x.x:12346 1 SzK] [Media] webp replacing: ?.. ? 11/26/22 11:27:09.567 [x.x.x.x:12346 1 SzK] [Media] ? replaced to: ?.. Guest mode: 11/26/22 11:27:09.932 [x.x.x.x:12346 1 V5R] [Media] webp replacing: ?.. ? 11/26/22 11:27:14.904 [x.x.x.x:12346 1 V5R] [Util] file not exist: ?.. Any advice is highly appreciated. The page I need help with: https://snugscent.co.uk/ Screenshot of chrome dev console with the load speed: https://snugscent.co.uk/wp-content/uploads/2022/11/Slow-Loading.png LiteSpeed Report Number: UMLCFPJE If a page is requested webp images are already replaced. Replacement doesnt happen on-the-fly, because webp already exist, so loading time has nothing to do with webp replacement. You have a lot of Javascript files to load and also a video file (winter.mp4). In sum almost 5MB has to load and much Javascript has to be parsed by browser. This takes time, too much time for fast page loading. @CacheCrawler Thanks for coming back to me. The observations about webp replacement were made directly from the debug log of LiteSpeed. Replacement takes anywhere from 4 to 6 seconds (data from debug log) X 2 with guest mode enabled (Debug log: https://snugscent.co.uk/wp-content/static/debug.log). Another important thing is that crawler runs every 4 hours, so all pages are cached quite frequently. In addition, all other pages are having the same issue (Blogs, Categories, Products), and those dont have that video For some reason, I think that cache gets purged every now and then (auto purge is disabled), which forces LiteSpeed to cache the page and replace images again because I dont think that images are replaced in non-cached pages. Again, if you request a page there is no replacement, because replacement is already done if a page is cached. Which image type is loaded it depends on the browser and if a browser supports webp a specific cache copy of the generated (html) source is loaded for those browsers. Therefore there is no delay that causes more loading time. You report more than 1 issue, but each issue is different. They have nothing to do with each other. Guestmode is Guestmode and crawler is crawler and webp is webp and loading is loading time, so lets do one after the other. First of all you should try to reduce the amount of data to load. This cant be optimized, but causes much loading time.



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



Reference