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…