You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We replaced an image asset using the asset manager but all entries that use the asset are still displaying the old image. This is because Craft is not deleting old images transforms. I've tried all cache clearing mechanisms and Craft will not delete old image transforms. Only manual deletion is successful.
Steps to reproduce
Add an image asset to a matrix
Create an entry using the matrix
Use twig function tag to create an image tag and pass a transform via twig as well
Upload an image
Replace the previous image with a new image through the asset manager
Expected behavior
Craft should be deleting old images transforms when an asset is replaced, or when template caches are cleared
Actual behavior
The old image persists
Craft CMS version
5.3.6
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
phillmorgan28
changed the title
[5.x]: Replacing an asset does not update any entries where the asset is used
[5.x]: Asset Transforms Are Not Removed When An Asset is Replaced
Sep 18, 2024
Hi, thanks for getting in touch! Let me check if I understand this correctly,
you have an entry with a matrix field with an assets field;
you upload an image to that assets field;
you view the entry on the front end and see the image you uploaded, transformed as per the transform you used
you the go to control panel > Assets and replace the file for that asset with a new one
you view the entry on the front end, and you see the old file, not the new one
Is that correct?
Could you please share a snippet of your twig code?
Are you using a named transform (defined in the control panel), or are you defining one in your template?
What happened?
Description
We replaced an image asset using the asset manager but all entries that use the asset are still displaying the old image. This is because Craft is not deleting old images transforms. I've tried all cache clearing mechanisms and Craft will not delete old image transforms. Only manual deletion is successful.
Steps to reproduce
Expected behavior
Craft should be deleting old images transforms when an asset is replaced, or when template caches are cleared
Actual behavior
The old image persists
Craft CMS version
5.3.6
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: