Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-07-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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:

  1. Upload an image file
  2. Show info for the image file in Filelist
  3. Replace the image file with a new version (any difference goes, but to see the difference, try different cropping or color)
  4. Show info for the image file in Filelist (the preview of the old image is still displayed)
  5. Clear processed images in the Install tool
  6. 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.


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #63976: Replacing an image in File > Filelist does not trigger recreation of thumbnailClosed2014-12-18

Actions
Related to TYPO3 Core - Bug #91169: Replace file does not invalidate page cacheUnder Review2020-04-22

Actions
Actions #1

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?

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Alexander Opitz about 9 years ago

What is the state of this issue?

Actions #7

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.

Actions #8

Updated by Anonymous over 4 years ago

  • Related to Bug #91169: Replace file does not invalidate page cache added
Actions

Also available in: Atom PDF