[TASK] Optimize clearing file backend caches 33/16833/3
authorOliver Hader <oliver@typo3.org>
Wed, 28 Nov 2012 10:49:36 +0000 (11:49 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 28 Mar 2013 09:38:46 +0000 (10:38 +0100)
commit9306751c32bd73d61bc11d8c5f494438465cf09e
treecff4d922b5a8f59111dd2584fb0dde42d97948d5
parent7b655915e30fe58c23bfccb5641394526583fc63
[TASK] Optimize clearing file backend caches

During concurrent requests it might happen that one request
flushes a cache that is stored in the filesystem and another
different request tries to recreate the data. This will lead
to race conditions if the cached contents are large.

The idea is to move the current cache to a temporary location
and then remove it.

Change-Id: I242fdbc6ab28008363747a8076d021ebce127e17
Resolves: #43382
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/16833
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Philipp Gampe
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/core/Classes/Cache/Backend/FileBackend.php
typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php