yireo / Yireo_Webp2

Magento 2 module to add WebP support to Magento 2
Open Software License 3.0
194 stars 54 forks source link

Wrong Product Image Showing on Category Page #159

Open faizanjaliyawala opened 4 months ago

faizanjaliyawala commented 4 months ago

Magento Version: 2.4.6-p2 NextGenImages Version: 0.5.0 Webp2 Version: 0.12.5

On listing page, for some products incorrect webp image is showing. If I open product page, it is showing correct image. When I inspected listing page, I found that cache image (jpg) is correct one, only issue is with webp cache image.

https://i.imgur.com/46I80DN.jpeg https://i.imgur.com/JVTnrmC.jpeg

I flushed entire images cache twice. Initially, it shown correct images. Later on, issue came again.

jissereitsma commented 4 months ago

If you have an JPG image version 1, you can use this extension to create a WebP image version 1. If you then replace the JPG image version 1 to version 2, the timestamp logic of this extension is to make sure that the WebP image needs to be upgraded as well. This assumes that the timestamp can be checked, so this does not work with external filesystems (S3, etc). Could you check the timestamps?

You say you "flush entire image cache". Did you try to actually review this on the filesystem? What happens if you not click buttons but just remove the files on the filesystem?

Did you test this with all of the caches disabled?

By the way, could you first upgrade the WebP extension to the latest version? That way, we prevent investing costly time into bugs that are already fixed.