Wordpress LScache Plugin: Image Optimisation Not Initializing
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, I cant seem to get the Image Optimisation to initialise. Whenever I click the the Initialise Optimisation button, the page reloads with &type=sync_data appended to the pages link. Right now the site in question is on Cloudflare but even prior to the integration the optimization wasnt working. Here is the debug log: 01/06/20 11:16:28.468 [102.167.229.38:30616 1 IHW] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 01/06/20 11:16:28.468 [102.167.229.38:30616 1 IHW] Query String: page=lscache-settings&settings-updated=true 01/06/20 11:16:28.468 [102.167.229.38:30616 1 IHW] HTTP_REFERER: https://hosi.co.ke/wp-admin/admin.php?page=lscache-settings 01/06/20 11:16:28.468 [102.167.229.38:30616 1 IHW] Cookie _lscache_vary: 48c46bb010da3663ec22bf1b75ba6e31 01/06/20 11:16:28.641 [102.167.229.38:30616 1 IHW] [Ctrl] X Cache_control -> no Cache ( logged in user ) 01/06/20 11:16:28.789 [102.167.229.38:30616 1 IHW] [Ctrl] X Cache_control -> no Cache ( Admin page ) 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Ctrl] not cacheable before ctrl finalize 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Router] get_uid: 1 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Router] get_role: administrator 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Vary] set_cookie ---> admin_bar:1 logged-in:1 role:99 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Ctrl] X Cache_control -> no Cache ( changing default vary 48c46bb010da3663ec22bf1b75ba6e31 => admin_bar:1 logged-in:1 role:99 ) 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] X-LiteSpeed-Cache-Control: no-cache 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] [Optm] bypass: Not frontend HTML type 01/06/20 11:16:28.829 [102.167.229.38:30616 1 IHW] End response -------------------------------------------------------------------------------- 01/06/20 11:16:40.701 [102.167.229.38:51358 1 Ehi] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 01/06/20 11:16:40.701 [102.167.229.38:51358 1 Ehi] Query String: page=lscache-optimization 01/06/20 11:16:40.701 [102.167.229.38:51358 1 Ehi] HTTP_REFERER: https://hosi.co.ke/wp-admin/admin.php?page=lscache-settings 01/06/20 11:16:40.701 [102.167.229.38:51358 1 Ehi] Cookie _lscache_vary: admin_bar:1 logged-in:1 role:99 01/06/20 11:16:40.894 [102.167.229.38:51358 1 Ehi] [Ctrl] X Cache_control -> no Cache ( logged in user ) 01/06/20 11:16:41.084 [102.167.229.38:51358 1 Ehi] [Ctrl] X Cache_control -> no Cache ( Admin page ) 01/06/20 11:16:41.122 [102.167.229.38:51358 1 Ehi] [Ctrl] not cacheable before ctrl finalize 01/06/20 11:16:41.122 [102.167.229.38:51358 1 Ehi] [Router] get_uid: 1 01/06/20 11:16:41.122 [102.167.229.38:51358 1 Ehi] [Router] get_role: administrator 01/06/20 11:16:41.123 [102.167.229.38:51358 1 Ehi] X-LiteSpeed-Cache-Control: no-cache 01/06/20 11:16:41.123 [102.167.229.38:51358 1 Ehi] [Optm] bypass: Not frontend HTML type 01/06/20 11:16:41.123 [102.167.229.38:51358 1 Ehi] End response -------------------------------------------------------------------------------- 01/06/20 11:16:46.484 [102.167.229.38:60264 1 d8E] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 01/06/20 11:16:46.484 [102.167.229.38:60264 1 d8E] Query String: page=lscache-optimization&LSCWP_CTRL=img_optm&LSCWP_NONCE=727a7a936c&type=sync_data 01/06/20 11:16:46.484 [102.167.229.38:60264 1 d8E] HTTP_REFERER: https://hosi.co.ke/wp-admin/admin.php?page=lscache-optimization 01/06/20 11:16:46.484 [102.167.229.38:60264 1 d8E] Cookie _lscache_vary: admin_bar:1 logged-in:1 role:99 01/06/20 11:16:46.670 [102.167.229.38:60264 1 d8E] [Ctrl] X Cache_control -> no Cache ( logged in user ) 01/06/20 11:16:47.348 [102.167.229.38:60264 1 d8E] [Router] LSCWP_CTRL: img_optm 01/06/20 11:16:47.348 [102.167.229.38:60264 1 d8E] [Router] LSCWP_CTRL verified: img_optm 01/06/20 11:16:47.348 [102.167.229.38:60264 1 d8E] [Router] parsed type: sync_data 01/06/20 11:16:47.349 [102.167.229.38:60264 1 d8E] [IAPI] posting to : https://eu.wp.api.litespeedtech.com/media_sync_data 01/06/20 11:16:57.352 [102.167.229.38:60264 1 d8E] [IAPI] failed to post: cURL error 28: Connection timed out after 10001 milliseconds 01/06/20 11:16:57.352 [102.167.229.38:60264 1 d8E] [Ctrl] 301 from https://hosi.co.ke/wp-admin/admin.php 01/06/20 11:16:57.352 [102.167.229.38:60264 1 d8E] [Ctrl] 301 to https://hosi.co.ke/wp-admin/admin.php?page=lscache-optimization&type=sync_data 01/06/20 11:16:57.352 [102.167.229.38:60264 1 d8E] [Ctrl] X Cache_control -> no Cache ( 301 to same url ) 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] [Ctrl] not cacheable before ctrl finalize 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] [Router] get_uid: 1 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] [Router] get_role: administrator 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] X-LiteSpeed-Cache-Control: no-cache 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] [Optm] bypass: Not frontend HTML type 01/06/20 11:16:57.353 [102.167.229.38:60264 1 d8E] End response -------------------------------------------------------------------------------- 01/06/20 11:16:57.798 [102.167.229.38:23188 1 k5t] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 01/06/20 11:16:57.798 [102.167.229.38:23188 1 k5t] Query String: page=lscache-optimization&type=sync_data 01/06/20 11:16:57.798 [102.167.229.38:23188 1 k5t] HTTP_REFERER: https://hosi.co.ke/wp-admin/admin.php?page=lscache-optimization 01/06/20 11:16:57.798 [102.167.229.38:23188 1 k5t] Cookie _lscache_vary: admin_bar:1 logged-in:1 role:99 01/06/20 11:16:57.981 [102.167.229.38:23188 1 k5t] [Ctrl] X Cache_control -> no Cache ( logged in user ) 01/06/20 11:16:58.164 [102.167.229.38:23188 1 k5t] [Ctrl] X Cache_control -> no Cache ( Admin page ) 01/06/20 11:16:58.199 [102.167.229.38:23188 1 k5t] [Ctrl] not cacheable before ctrl finalize 01/06/20 11:16:58.199 [102.167.229.38:23188 1 k5t] [Router] get_uid: 1 01/06/20 11:16:58.199 [102.167.229.38:23188 1 k5t] [Router] get_role: administrator 01/06/20 11:16:58.200 [102.167.229.38:23188 1 k5t] X-LiteSpeed-Cache-Control: no-cache 01/06/20 11:16:58.200 [102.167.229.38:23188 1 k5t] [Optm] bypass: Not frontend HTML type 01/06/20 11:16:58.200 [102.167.229.38:23188 1 k5t] End response -------------------------------------------------------------------------------- 01/06/20 11:17:08.537 [102.167.229.38:40592 1 EV8] ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 01/06/20 11:17:08.537 [102.167.229.38:40592 1 EV8] Query String: page=lscache-debug 01/06/20 11:17:08.537 [102.167.229.38:40592 1 EV8] HTTP_REFERER: https://hosi.co.ke/wp-admin/admin.php?page=lscache-optimization&type=sync_data 01/06/20 11:17:08.537 [102.167.229.38:40592 1 EV8] Cookie _lscache_vary: admin_bar:1 logged-in:1 role:99 01/06/20 11:17:08.714 [102.167.229.38:40592 1 EV8] [Ctrl] X Cache_control -> no Cache ( logged in user ) 01/06/20 11:17:08.880 [102.167.229.38:40592 1 EV8] [Ctrl] X Cache_control -> no Cache ( Admin page )Expand Hi @kevisorus, seems our server cannot connect to your site due to connection timeout, please follow https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:image-optimization#server_list to add IP whitelist, after that, try to Clean Up Unfinished Data > Reset IAPI Key > Send Optimization Data. Hi Stanley, thanks for the reply. Where exactly am I supposed to add these IPs? Also I cannot Clean Up Unfinished Data since the Optimization has never run. It just shows 0% and the total number of image groups. Yes, if the server cannot connect to your site, most of the function cannot be used, the IPs can add on Cloudflare Firewall > Firewall Rules / Tools. I should mention that even before putting the site on Cloudflare, the Optimization was still not running. Nevertheless, Ive gone ahead and whitelisted the IPs but the optimisation is still not initialising. Thanks for the update, could you please join our Slack channel and find me(Stanley Cheung at Litespeed) for helping us to reproduce the bug, thanks. Hi I have this exact same problem? I just whitelisted the ips in Cloudflare, it make no difference? I dont have a Slack account, is this really needed ?? Thanks Hi Alain, we eventually solved the problem by having my host whitelist Litespeeds image optimization server IPs. You could try the same and see if it resolves the issue for you. I whitelisted in Cloudflare and locally in Wordfence, what else? There are 11 IPs, correct ? Thanks Your web host could still be blocking those IPs so you need to check with them that theyre whitelisted on their end too. And yes, theyre 11 of them: 142.93.112.87 68.183.55.115 178.128.152.109 206.189.203.203 206.189.100.139 128.199.57.119 159.89.13.42 165.227.131.98 68.183.180.19 178.128.100.105 139.59.59.66 t ttThis reply was modified 2 years, 10 months ago by kevisorus. One of them was blocked at the host, it is unblocked now. All sorted, thanks Alain Youre most welcome.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference