-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Asset Transforms Are Not Removed When An Asset is Replaced #15753
Comments
Hi, thanks for getting in touch! Let me check if I understand this correctly,
Is that correct? Could you please share a snippet of your twig code? |
Hi, thanks for the response. This is our image twig component:
The problem isn't with the generation of the images, it's that the transforms are not being cleaned up when the image is replaced, or when any of the caches are cleared. Many thanks! |
Additionally, we are using some cache tags throughout our templates, however considering that I am clearing the caches to solve the issue (with no effect), I wouldn't have though these would have any bearing on transforms not being cleaned up? |
Thanks! What filesystem are you using for your transforms (aws s3, local, etc)? Are you using CDN to serve the transformed images? |
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: