From 91205c0329fd08786d2d7cb01947a86fd059d20c Mon Sep 17 00:00:00 2001 From: Ole Morten Halvorsen Date: Mon, 17 Sep 2018 15:10:37 +0200 Subject: [PATCH] Prevent race condition when generating TS cache (#1388) --- lib/ezi18n/classes/eztstranslator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ezi18n/classes/eztstranslator.php b/lib/ezi18n/classes/eztstranslator.php index 54e5370da5a..d703c13dfb9 100644 --- a/lib/ezi18n/classes/eztstranslator.php +++ b/lib/ezi18n/classes/eztstranslator.php @@ -218,6 +218,10 @@ function loadTranslationFile( $locale, $filename, $requestedContext ) $this->Messages[$key] = $msg; } } + else + { + $this->BuildCache = true; + } eZDebug::accumulatorStop( 'tstranslator_context_load' ); } }