mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4125 - Add a warning log when corrupted data returned by APCu
This commit is contained in:
@@ -273,6 +273,7 @@ class Dict
|
|||||||
self::$m_aData[$sLangCode] = self::GetApcService()->apc_fetch(self::$m_sApplicationPrefix.'-dict-'.$sLangCode);
|
self::$m_aData[$sLangCode] = self::GetApcService()->apc_fetch(self::$m_sApplicationPrefix.'-dict-'.$sLangCode);
|
||||||
if (! is_array(self::$m_aData[$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]);
|
unset(self::$m_aData[$sLangCode]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user