[BUGFIX] Cache file could not be written on concurrent actions 98/19898/2
authorOliver Hader <oliver@typo3.org>
Sat, 13 Apr 2013 10:54:12 +0000 (12:54 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 13 Apr 2013 11:10:05 +0000 (13:10 +0200)
commit4e4ad0a4107f27b5f7c6ab0fed9c45ddc27c41b5
tree1f304569ec873d5a0a3f8092125e6d2f05e87b85
parentf8eaf5e91f0097407281aa2c3009c240feb5e7d5
[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
typo3/sysext/lang/Classes/LanguageCacheClearer.php