N°4125 - Add a warning log when corrupted data returned by APCu

This commit is contained in:
odain
2021-07-02 08:53:58 +02:00
parent 2d705c6697
commit ed719e13c7

View File

@@ -273,6 +273,7 @@ class Dict
self::$m_aData[$sLangCode] = self::GetApcService()->apc_fetch(self::$m_sApplicationPrefix.'-dict-'.$sLangCode);
if (! is_array(self::$m_aData[$sLangCode]))
{
IssueLog::Warning("APCu corrupted data (with $sLangCode dictionnary). APCu configuration and running version should be troubleshooted...");
unset(self::$m_aData[$sLangCode]);
}
else