Wordpress LScache Plugin: nextgen gallery webp
Last Updated on: Wed, 15 Apr 2026 00:00:02 Report number: KGRGKLKG Hi, firstly, awesome plugin and performance with WP on Litespeed server, thanks to your team ! Image optimization and use of webp replacing works fine except for images within an NGG gallery, they remain png/jpeg. These are generated within html, as img.data-src or img , so I would have expected them to be converted like the other images on the site have. Is this a known bug, is there a workaround ? Thanks Hi @pinkladyapples, our engine can replace img to webp on data-src and I saw you already have this config setting. But I find the image on the slide show is on wp-content/gallery which is not the official upload folder so our optimization will exclude this file. Could you try to use the wp-content/upload images instead? Hi, I tried that, no change . see sample page /18223-2/ Debug logs shows its trying to find a webp on disk now, I guess it just needs to pull down webp versions from the service Yes, after you upload the image to optm server it might need to wait for a moment before pulling it back. ok, gave it some time, I dont see the images being sent to the optimization service. I peeked inside the db in the wp_litespeed_img_optm table, I dont see the image there. the debug logs dont hint at a problem [Media] webp replacing: https://foo/wp-content/uploads/ngg/foo/foo.jpg => LSC_Media->replace_webp()@851 => LSC_Media->_replace_buffer_img_webp()@736 => LSC_Media->_finalize()@424 => LSC_Media::finalize()@407 [Util] file not exist: /home/foo/public_html/wp-content/uploads/ngg/foo/foo.jpg.webp [Media] -no WebP file, bypassed any hints why the image service might not be adding these images to the db for processing ? if I upload an image through the regular media library, it gets optimized as expected (I see this in the db aswell as the .webp file being pulled) if I import this into a gallery, or upload into a gallery, an optimized version is created. (I dont see an entry in the db). Is there a trick to make the image optimization see the new image and trigger its optimization process ? External folder images optm will be added after version 3.2, please keep track with our update. Thanks for the update, I can make the webp images outside of wordpress / lscache , and they are served as expected now. I look forward to the update with support for external folder though fwiw, ngg stores file information in the db, so looking at your code, the sql query used to generate the list of files for optimization could be modified to deal with the ngg table in the db aswell as the wp post table, without having to support external folders. any update on this?
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference