Review 12.4 Merged

83261[BUGFIX] Avoid race condition in DI cache persistence

Benjamin Franzke CR +2 V +2 Easy +0 −7 updated 03/08/24, 21:12

Commit message

With #90418 the container cache has been excluded from the
regular cache-flush-pipeline.
Therefore flushing has been explicitly performed when writing a
new cache entry (with the intent to clean up old cache entries).

Issue is: Cleaning up the entire folder by deleting the folder means
a concurrent request – that is creating the same DI cache as well –
will fail to write the cache when the folder is (re)moved in that
moment.

It turns out this cache-flush is not needed at all, since the cache
identifier is stable for an TYPO3 instance, therefore a pre-flight
flush can be dropped.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Benjamin Franzke uploaded patch set 1 03/06/24, 16:14

  2. core-ci voted on patch set 1 V +1 03/06/24, 16:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/54051

  3. Benjamin Franzke commented on patch set 1 CR +2 V +2 03/08/24, 21:12

    This change is ready for review.
  4. Benjamin Franzke merged patch set 2 03/08/24, 21:12