Title: stop image optimization
Last modified: May 26, 2025

---

# stop image optimization

 *  Resolved [njwp](https://wordpress.org/support/users/njwp/)
 * (@njwp)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/)
 * Hi
 * I have image optimization turned off. I recently found out that
 * “**Auto Pull Cron** is now enabled by default in LSCWP v7. If you wish to disable
   it, please add the following line to your `functions.php` file:`define('LITESPEED_IMG_OPTM_PULL_CRON',
   false);`“
 * I have added that line to my functions.php but the cron job is still running.
 * Requests like these are running at least every 2 minutes. How do I stop them?
 * `**/wp-admin/admin-ajax.php?action=async_litespeed&nonce=...&litespeed_type=imgoptm**`

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

 *  [wpuman](https://wordpress.org/support/users/wpuman/)
 * (@wpuman)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18483138)
 * Hi !
 * I am also looking for the solution to stop image optimization and multiple queries
 * `**/wp-admin/admin-ajax.php?action=async_litespeed&nonce=...&litespeed_type=imgoptm**`
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18483870)
 * that constant won’t work if you put it at functions.php
 * please put it at top of wp-config.php , next line after `<?php`
 *  Thread Starter [njwp](https://wordpress.org/support/users/njwp/)
 * (@njwp)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18484024)
 * Thanks. Unfortunately that didn’t work either. Do I need to flush the cron jobs
   or something?
   Also you may like to update your documentation on this page:[https://docs.litespeedtech.com/lscache/lscwp/imageopt/#auto-pull-cron](https://docs.litespeedtech.com/lscache/lscwp/imageopt/#auto-pull-cron)
 * as it says to put on ‘functions.php’
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18484048)
 * I will set up a test site and check out
 * and if you are not using image optm , the request will check cron and exit right
   away , the resources usage should be slim to none.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18484116)
 * okay , just talked with dev team , this will be fixed in next release
 * if you are not using image optm , it won’t really consume any resources,
 * as a workaround if you still bother with this request
 *     ```wp-block-code
       <IfModule LiteSpeed>RewriteCond %{QUERY_STRING} action=async_litespeed&nonce=(.*)&litespeed_type=imgoptm(.*)RewriteRule ^ - [F]</IfModule>
       ```
   
 * you can use this rewrite rule to block this request
 *  Thread Starter [njwp](https://wordpress.org/support/users/njwp/)
 * (@njwp)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18484729)
 * great! Thanks for the quick resolution
   The reason it’s a nuisance is that my 
   security plugin is flagging it as suspicious activity and blocking the server
   IP address. I have to whitelist it in the security plugin in all the sites I 
   manage.I am a little disappointed that you changed the behavior, as all my sites
   were set up without image optimisation and now I have to go and redo them all
   to force no image optimisation again. It would have been good if you could have
   respected the settings that were already there.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18485827)
 * sorry for the inconvenience , this is more like a bug in the code that didn’t
   respect the constant to bypass pulling…

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

The topic ‘stop image optimization’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/stop-image-optimization/#post-18485827)
 * Status: resolved