LiteSpeed Image Optimization is not working




Wordpress LScache Plugin: LiteSpeed Image Optimization is not working

Last Updated on: Wed, 15 Apr 2026 00:00:02
Debug log:- 12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] get_role: administrator 12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] Media init 12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] CDN init 12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] CDN bypassed: is not ajax call 12/21/19 14:01:41.080 [183.82.22.172:25518 1 Rlo] [Router] CDN bypassed: ajax call from admin 12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] Task init 12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] LSCWP_CTRL: img_optm 12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] LSCWP_CTRL verified: img_optm 12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] ImgOptm init 12/21/19 14:01:41.081 [183.82.22.172:25518 1 Rlo] [Router] parsed type: sync_data => LSC_Router::verify_type()@425 => LSC_Img_Optm::handler()@2078 => LSC->proceed_action()@361 12/21/19 14:01:41.083 [183.82.22.172:25518 1 Rlo] [IAPI] posting to : https://eu.wp.api.litespeedtech.com/media_sync_data 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [IAPI] failed to post: cURL error 28: Connection timed out after 10001 milliseconds 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] 301 from https://www.cyberithub.com/wp-admin/admin.php 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] 301 to https://www.cyberithub.com/wp-admin/admin.php?page=lscache-optimization&type=sync_data 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Ctrl] X Cache_control -> no Cache ( 301 to same url ) => LSC_Control::set_nocache()@317 => LSC_Control::check_redirect()@467 => WP_Hook->apply_filters()@286 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [Core] CHK html bypass: miss footer const 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Ctrl] not cacheable before ctrl finalize 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Cfg] role in vary_group [group] 99 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Vary] show_admin_bar_front: false 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Vary] no custimzed vary 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] X-LiteSpeed-Cache-Control: no-cache 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Core] CHK html bypass: miss footer const 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Media] bypass: Not frontend HTML type 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] GUI bypassed by no counter 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] [Optm] bypass: Not frontend HTML type 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] CDN bypass 12/21/19 14:01:42.598 [183.82.22.172:13258 1 V1U] End response the curl out to the image optimization service timed out. does your provider allow outbound CURL requests ? 12/21/19 14:01:42.597 [183.82.22.172:13258 1 V1U] [IAPI] failed to post: cURL error 28: Connection timed out after 10001 milliseconds Yes it does. It is not blocked anywhere. Hi @yateendra88, I think you are using Cloudflare DNS and the connection between our server is blocked, please follow https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:image-optimization#server_list to add whitelist, after that, try to Clean Up Unfinished Data > Reset IAPI Key > Send Optimization Data to see does it work? Could you tell me where should i perform below steps? Clean Up Unfinished Data > Reset IAPI Key > Send Optimization Data You can find the button on LiteSpeed > Image Optimization Page. Litespeed Cache Image Optimization page only has Initialize Optimization option and nothing else. Sorry that not aware the optimization did not start yet, please click Initialize Optimization to start the optimization. If it still not works, please try to turn ON Cloudflare development mode. I did whitelisted all the IP in Firewall->IP Rules in CloudFare. Turned on Development mode and cleared the cached. Then clicked on Intialize Optimization.Still no change. Sry for typo, it is Cloudflare. Could you please join our Slack channel and find me(Stanley Cheung at Litespeed) for helping us to reproduce the bug, thanks. I am getting this reply is no longer active @yateendra88 Please use: https://litespeedtech.com/slack/ An update for anyone experiencing this issue. If you click Initial optimization with no reponse, please check on the debug.log. ` [IAPI] posting to : https://eu.wp.api.litespeedtech.com/media_sync_data [IAPI] failed to post: cURL error 28: Connection timed out after 10001 milliseconds Its connection timeout when calling to our optimization server, please try to create a simple post request to https://eu.wp.api.litespeedtech.com/media_sync_data ` If you find these two rows that mean the connection between IMG OPTM server and your server is failed. Please confirm you already added IPs on all of your server firewall. Next steps please try to make a curl request to the your log posting to address, for example: If its still timeout please try to change the curl URL to other address, e.g. us.wp.api.... to confirm its just an issue with a single server. If the connection timeout is just from the first URL, our server might be on heavy load or your IP has been blocked due to some reason. You can wait for a while or remove the litespeed_api_cloud on database options table for change the server location. (Just for the experienced user, this action might break the site if not doing correctly.)



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



Reference