• jedsta

    (@jedsta)


    It looks like the srcset media information is not being updated in the database. After renaming a file it is often broken and looking at the source of the page it is the srcset img attribute which is pointing to the old name. If we regenerate the thumbnails of the image it appears to correct it. However, it would be best if this was done during the rename as with multiple people uploading media it’s hard to track what is broken or fixed over time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    The metadata should be rewritten, it is by the plugin, of course. Maybe something else is happening? Could it be the caching as well? There is caching at many levels (server-side, client-side, sometimes even at the DB level) and my plugin actually doesn’t trigger a cache-reset. Might it be that?

    Thread Starter jedsta

    (@jedsta)

    The issue seems to be related to the thumbnail’s which are referenced in the posts. If I regenerate the thumbnails after performing a rename the issue is resolved. Is their perhaps a way to trigger regenerating thumbnails after the rename is triggered?

    Recyclart

    (@recyclart)

    I have same problem since a long time, so I removed srcset directly in my functions.php to avoid this problem of broken images. Never find where the problem could came from but maybe some cache at server/db with OVH option (development/production)?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Actually, people having this issue, can you try to have this issue happening on another install? With a local install for example, a development one?

    Like @recyclart said, maybe it is coming from a caching at the server level, and this will be hard to debug if we are not sure. We need to make sure the plugin is working for you all on your own dev server with no cache. If it doesn’t, then maybe there is a fix I can apply. If it’s a cache issue, we need to see what we can do with the hosting service.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘srcset not being updated’ is closed to new replies.