WP Rocket for caching? Which plugin are you refering to? This one? : https://ww.wp.xz.cn/plugins/rocket-lazy-load/ – but it is used for lazy load.
I see that picture tag replacing works for a few images, ie the logo.
Have you tried to change the hook ? (Alter HTML > Where to replace)
I’m just about to release 0.12. Perhaps it will help
I did change the hook, and if I use the other option available nothing gets converted
I’m using both:
https://wp-rocket.me/
https://ww.wp.xz.cn/plugins/rocket-lazy-load/
But mainly, this one doesn’t work:
https://wp-rocket.me/
I mean when I activate it, or when I’m not logged in <img> stops getting converted into <picture> Also it doesn’t work for product filter ajax calls…
I’ll wait for the release of 0.12, but these are pretty specific issues, so we will see…
The cache script probably hooks before yours does
if it does, that will explain it
But did you have it working with wp-rocket.me, and then it suddenly stopped working. Or did it stop working after installing wp-rocket.me ?
Is there a free version of WP Rocket? It seems not…
-
This reply was modified 7 years, 3 months ago by
rosell.dk.
I had wp-rocket.me before this one. Then I have installed WebpExpress and it all seemed to work just fine. Then I added LazyLoad and all seemed great.
Yesterday I did some minor changes to the css and tested everything else again. And at some point it failed working.
So, I tested everything else all over again and noticed that it works when I’m logged in ( page not cached ) or when wp-rocket.me is deactivated and it doesn’t otherwise. Also, noticed it doesn’t work for ajax calls.
So if it was me doing something I believe it would stop working altogether
And about cache plugin hooking before, not totally sure, because the logo image get converted just fine
Yes, the logo is pointing to the CDN server which means the WP rocket hook is called after the WebP Express hook. I was just about to write that 🙂
I see that WP Rocket have a 14 day money back trial. I could use that. But it will have to wait till next week. I’d like to get 0.12 published, and also got some work to do
They may have a more complex way of hooking… 🙂
-
This reply was modified 7 years, 3 months ago by
miculgigant.
OK, got it. Just let me know when you get to test it, I’ll wait. Or maybe 0.12 will fix it. Or I’ll figure it out myself, in which case will let you know.
Thank you!
The thing with the ajax call is that it’s made via /wp-admin so definitely it’s made prior to WebpExpress or maybe WebpExpress doesn’t get called at all in this case
-
This reply was modified 7 years, 3 months ago by
miculgigant.
0.12 is out now.
WebP Express does not alter HTML in admin. I disabled that because people were having trouble with the Media Library not showing any images.
Try disabling line 28-30 in plugins/webp-express/lib/classes/AlterHTMLInit.php.
It is the lines saying:
if (is_admin() ) {
return $content;
}
Does that fix the ajax call?