Hi Frank,
Each time I’m checking in I really need to congratulate you for the fantastic plugin you created. It makes my life easier every day! Since I’m always looking for new opportunities to optimize my site, I decided to give ShortPixel a go after seeing that AO offered the possibility to Optimize images on the fly and serve them from ShortPixel’s CDN (before that I used Smush and EWWW Image Optimizer). I signed up for 65,000 credits (thanks for the free credits by the way), and launched the long image optimization process (took 24 hours to complete).
However, even though 98% of my images were properly optimized, I later ran into a series of bugs (spoiler alert: I think I identified the source of the problem). I reached out to @shortpixel to tell them about this bug. The description below is just FYI, as I don’t want to take your time + I think I solved this issue (so far). But I thought my user experience could be interesting to you (particularly Bug #2).
Bug #1: Optimizing pictures on the fly (when uploading them) vs optimizing pictures which have been previously uploaded.
Over the last two days I optimized the images of my site using ShortPixel’s plugin. It worked smoothly. All the images which were optimized, were images which had been uploaded BEFORE the ShortPixel plugin was installed (this is important). FYI, the “Optimize media on upload” option was ticked then. I excluded the following thumbnail sizes from the resizing process: “thumbnail (150px × 150px)” and “medium (300px × 300px)”. Today, I added various new images to my site for the first time (“Optimize media on upload” still ticked). These images were then optimized on the fly while they were being uploaded. When I published the article with these media, all the thumbnails were broken. I made a backup of my site (backup A), and reverted to an earlier backup from 8 hours ago (backup B). I then reverted to backup A. All thumbnails were back (except for my most recent article). I then deleted all the pictures which had been optimized on the fly for my recent article, deactivated the option “Optimize media on upload”, uploaded the same media again (not optimized), and ran an optimization on this media only once they had been fully uploaded. Now, all the thumbnails are visible (after I cleaned AO’s cache, WP Engine’s cache, and Cloudfare’s cache). I think the problem was caused by the “Optimize media on upload”. Possible reason: the fact that I excluded “thumbnail (150px × 150px)” and “medium (300px × 300px)” from the optimization process.
Bug #2: “Optimize images on the fly and serve them from a CDN” (in AO’s “Extra Auto-Optimisations”).
I thought my problem was solved. However, a few hours later, 70% of my thumbnails were broken. After checking the behavior of a page when it loaded (it took forever to load…), I noticed that it was calling resources from ShortPixel’s CDN (https://cdn.shortpixel.ai/). I had this feature enabled in Autoptimize: “Optimize images on the fly and serve them from a CDN” (in “Extra Auto-Optimisations”). After I deactivated the feature and cleaned my AO/WP Engine/Cloudflare cache, everything was back as it was before when everything worked.
I will keep an eye on how the site behave overnight. I thought this might interest other users who might ran into the same issue.
à bient?t!