Issue Bug Closed

#91169Replace file does not invalidate page cache

Anonymous 04/22/20, 11:35 updated 10/23/26, 08:17

Description

An editor uploads an image in filelist. The editor references the image in a “textpic” CE on a page 1. The editor visits the frontend of page 1 and the page gets cached.

If an Editor replaces the image via “replace” functionality in filelist:

  • processed files are removed. which is correct
  • but page cache with references to the image is not invalidated

result:

textpic on page 1 shows no image anymore (as processed files were deleted and webserver says 404).

expected behaviour:

invalidate caches (e.g. pages) where file-references to fal-files are made.

Reviews 1

History 1118

  1. Josef Glatz commented <span data-processor="relativetime" data-value="2020-04-22T12:16:12+00:00" > 04/22/20, 12:16 </span>

    Just some reference:

    @Ingo: Daniel Siepmann has dealt with such scenario in his article https://daniel-siepmann.de/posts/2019/typo3-content-caching.html if I can remember… There you find exactly good examples for your problem.

  2. Anonymous commented <span data-processor="relativetime" data-value="2020-06-24T09:17:13+00:00" > 06/24/20, 09:17 </span>

    Josef Glatz wrote:
    > Just some reference:
    >
    > @Ingo: Daniel Siepmann has dealt with such scenario in his article https://daniel-siepmann.de/posts/2019/typo3-content-caching.html if I can remember… There you find exactly good examples for your problem.

    That’s right.

    But this is still an issue for all FSC CEs.

  3. Christian Toffolo commented <span data-processor="relativetime" data-value="2022-04-27T06:04:49+00:00" > 04/27/22, 06:04 </span>

    This extension Cache optimizer (not tested) does this and more. From the manual:

    It uses an enhanced tag handling to clear the cache in these use cases:
    - When a content element is changed the cache of all pages is cleared where this content element is referenced by a shortcut.
    - When a file or the metadata of a file is changed the cache of all pages is cleared where this file is used in the page properties or in content elements.
    - When a file is changed the directory is detected and the cache of all pages is cleared where a folder collection references it.
    - When a record of an Extension is changed the cache of all pages is cleared where a related plugin is used.

    IMHO all these cases should be handled by the core, not only the case where a file is replaced.

  4. Simon Schaufelberger commented <span data-processor="relativetime" data-value="2026-03-07T19:27:14+00:00" > 03/07/26, 19:27 </span>

    This should be fixed with #102430 or?

  5. Benni Mack commented and changed status Under Review Closed <span data-processor="relativetime" data-value="2026-10-23T08:17:40+00:00" > 10/23/26, 08:17 </span>

    Yes. closing this