• Resolved njwp

    (@njwp)


    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)
  • 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

    (@qtwrk)

    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

    (@njwp)

    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

    as it says to put on ‘functions.php’

    Plugin Support qtwrk

    (@qtwrk)

    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

    (@qtwrk)

    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

    <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

    (@njwp)

    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

    (@qtwrk)

    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.