Retrofit from trunk

N°1246 - Fix Obsolete data visible in dependency graph.
* Fix a wrong transient OQL expression cache introduced in [4943]. [from revision 5257]

SVN:2.4[5259]
This commit is contained in:
Eric Espié
2018-01-16 15:05:27 +00:00
parent d1e2bc9b2b
commit 985b366cc7

View File

@@ -85,11 +85,11 @@ abstract class Expression
static $aCache = array();
if (array_key_exists($sConditionExpr, $aCache))
{
return $aCache[$sConditionExpr];
return unserialize($aCache[$sConditionExpr]);
}
$oOql = new OqlInterpreter($sConditionExpr);
$oExpression = $oOql->ParseExpression();
$aCache[$sConditionExpr] = $oExpression;
$aCache[$sConditionExpr] = serialize($oExpression);
return $oExpression;
}