Bug #68008
closedProcessed image versions are not deleted when image file is replaced
0%
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.
Updated by Frans Saris over 9 years ago
- 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?
Updated by Mathias Bolt Lesniak over 9 years ago
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
Updated by Frans Saris over 9 years ago
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
Updated by Mathias Bolt Lesniak over 9 years ago
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
Updated by Mathias Bolt Lesniak over 9 years ago
Hi!
Apart from that the page cache of the pages where the image is used is not cleared, things are working now.
- Mathias
Updated by Alexander Opitz over 8 years ago
- 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.
Updated by Anonymous over 4 years ago
- Related to Bug #91169: Replace file does not invalidate page cache added