Title: Image Optimisation Not Initializing
Last modified: January 6, 2020

---

# Image Optimisation Not Initializing

 *  Resolved [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/)
 * Hello,
 * I can’t 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 page’s link. Right now the site in question is on Cloudflare 
   but even prior to the integration the optimization wasn’t 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 )
       ```
   

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12296637)
 * Hi [@kevisorus](https://wordpress.org/support/users/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](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`.
 *  Thread Starter [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12297380)
 * 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.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12297674)
 * 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`.
 *  Thread Starter [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12298031)
 * I should mention that even before putting the site on Cloudflare, the Optimization
   was still not running. Nevertheless, I’ve gone ahead and whitelisted the IPs 
   but the optimisation is still not initialising.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12303564)
 * Thanks for the update, could you please [join our Slack channel and find me(Stanley Cheung at Litespeed)](https://litespeedtech.com/slack/)
   for helping us to reproduce the bug, thanks.
 *  [Alain Aubry](https://wordpress.org/support/users/caban13/)
 * (@caban13)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12332612)
 * Hi
 * I have this exact same problem… I just whitelisted the ip’s in Cloudflare, it
   make no difference…
 * I don’t have a Slack account, is this really needed ??
 * Thanks
 *  Thread Starter [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333032)
 * Hi Alain, we eventually solved the problem by having my host whitelist Litespeed’s
   image optimization server IPs. You could try the same and see if it resolves 
   the issue for you.
 *  [Alain Aubry](https://wordpress.org/support/users/caban13/)
 * (@caban13)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333156)
 * I whitelisted in Cloudflare and locally in Wordfence, what else?
    There are 11
   IP’s, correct ? Thanks
 *  Thread Starter [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333223)
 * Your web host could still be blocking those IPs so you need to check with them
   that they’re whitelisted on their end too. And yes, they’re 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
       ```
   
    -  This reply was modified 6 years, 4 months ago by [kevisorus](https://wordpress.org/support/users/kevisorus/).
 *  [Alain Aubry](https://wordpress.org/support/users/caban13/)
 * (@caban13)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333765)
 * One of them was blocked at the host, it is unblocked now.
    All sorted, thanks
   Alain
 *  Thread Starter [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * (@kevisorus)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333877)
 * You’re most welcome.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Image Optimisation Not Initializing’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [image optimisation](https://wordpress.org/support/topic-tag/image-optimisation/)

 * 11 replies
 * 3 participants
 * Last reply from: [kevisorus](https://wordpress.org/support/users/kevisorus/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/image-optimisation-not-initializing/#post-12333877)
 * Status: resolved