[BUGFIX] Cache file could not be written on concurrent actions 03/19903/2
authorOliver Hader <oliver@typo3.org>
Sat, 13 Apr 2013 10:54:12 +0000 (12:54 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 13 Apr 2013 11:23:44 +0000 (13:23 +0200)
commit3439e954541cd2bc8b5d2a7b1211a2fa98297e04
tree543b281be1d0efb68e926d81f9a10d4e790d50c0
parent6d7fc2dfc94424eeeb4255c1409570b080908c16
[BUGFIX] Cache file could not be written on concurrent actions

The hook to clear the language (l10n) caches is currently called
every time any element in the backend is modified. If concurrent
actions take place, flushing and regenerating this cache results
in an accordant exception like

The cache file ".../t3lib_l10n/3e2cbbda0301cf592e5831ef26c56b7b"
could not be written.

The solution is to only execute this hook if all or the temp.
caches shall be cleared

Change-Id: Iaf68f50e2f9bfcc3ffce64a0f5267673afd332ad
Fixes: #46205
Releases: 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/19898
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-on: https://review.typo3.org/19903
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/lang/Classes/LanguageCacheClearer.php