Wrong webp path lookup with Bedrock




Wordpress LScache Plugin: Wrong webp path lookup with Bedrock

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I enabled quic.cloud image optimizations which ran great, but webp replacements are enabled, the files are created and I see them on the host, but wont activate. When I looked up in the logs, I noticed it doesnt check in the right folder for the webp image. 10/25/22 14:53:05.014 [165.227.116.222:18222 1 DFi] [Media] webp replacing: https://behome-interiors.com/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670x602.jpg 10/25/22 14:53:05.015 [165.227.116.222:18222 1 DFi] [Util] file not exist: /home/behomet/www/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670x602.jpg The path should be /home/behomet/www/web/app/uploads/2022/06/Format_Image_Header_Projet_Pierre-2-1670?602.jpg This is a bedrock install so the WP_CONTENT_DIR is setup properly, but it seems that it is bypassed in the plugin. Thanks. This topic was modified 1 month ago by davidwebca. I dug into the code and found this constant documented / Trying to fix pure /.htaccess rewrite to /wordpress case Add define( LITESPEED_WP_REALPATH, /wordpress ) in wp-config.php in this case @internal #611001 - Combine & Minify not working? @since 1.6.3 / So in my config/application.php file, I added Config::define( LITESPEED_WP_REALPATH, /web ) and it seemed to resolve this issue. Im marking this as resolved and leaving it here in case someone else stumbles onto this issue, but Id still like an official opinion from Litespeeds people to make sure I didnt break anything else by doing that.



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



Reference