Bug #68008
closed
Processed image versions are not deleted when image file is replaced
Added by Mathias Bolt Lesniak over 9 years ago.
Updated over 8 years ago.
Category:
File Abstraction Layer (FAL)
Description
Hi!
(Sorry if this issue is a duplicate. I found a number of issues dealing with images and FAL, but not exactly this one.)
The processed versions of an image is not deleted when the image file is replaced. This is true both for processed versions generated in content elements and for preview images in in Filelist's file info window. The only way to replace the processed image is to log into the Install tool, an inconvenience for administrators and an impossibility for normal editors.
Steps to reproduce:
- Upload an image file
- Show info for the image file in Filelist
- Replace the image file with a new version (any difference goes, but to see the difference, try different cropping or color)
- Show info for the image file in Filelist (the preview of the old image is still displayed)
- Clear processed images in the Install tool
- Show info for the image file in Filelist (the preview is now showing the new image)
Once the processed images have been deleted, the page cache for pages where the image has been used must also be cleared. Would it be a good idea to add a cache tag for each rendered image? Something like "sys_file-XXX"
- Mathias
TYPO3 version 6.2.14.
- Status changed from New to Needs Feedback
With "Replace the image file with a new version (any difference goes, but to see the difference, try different cropping or color)" you mean upload a new file with the same filename?
Frans Saris wrote:
With "Replace the image file with a new version (any difference goes, but to see the difference, try different cropping or color)" you mean upload a new file with the same filename?
Yup. That's it.
- Mathias
That was fixed with #63976. And just tested in the file list all works as expected. When I upload a new version the old processed files are deleted.
Where are you testing? Also in the File module? And what do you use for rendering the images in FE? Maybe some old style typoscript?
gr. Frans
Hi Frans!
I think this may be related only to images imported into FAL as a part of an upgrade. It seems to work when I use a new file (though the page cache is not cleared). I will test this further.
- Mathias
Hi!
Apart from that the page cache of the pages where the image is used is not cleared, things are working now.
- Mathias
What is the state of this issue?
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
- Related to Bug #91169: Replace file does not invalidate page cache added
Also available in: Atom
PDF