Skip to content
Snippets Groups Projects
Commit ad324878 authored by Patrick Schriner's avatar Patrick Schriner Committed by Benjamin Franzke
Browse files

[BUGFIX] Circumvent possible race condition in cache retrieval

To circumvent race conditions where the cache is removed between
`has()` and `require()` invocations, the return value of the
cache result needs to be verified, as `false` is returned if
the cache entry is not available.

Resolves: #103720
Releases: main, 12.4
Change-Id: Iefede04108d3adf9bd6c77cb0600cdc994f6d0fa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84016


Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 6cc90b3d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment