From c94476b9a27155e69d18b1a3ae2829cfb10c2a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Wed, 18 Oct 2017 12:53:23 +0000 Subject: [PATCH] N.1065 Fix performance issues. * Added the bGetCount flag into the cache to differentiate the cache entries for COUNT only. SVN:trunk[5034] --- core/dbobjectsearch.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dbobjectsearch.class.php b/core/dbobjectsearch.class.php index 973c8acbe..f1295407d 100644 --- a/core/dbobjectsearch.class.php +++ b/core/dbobjectsearch.class.php @@ -1502,7 +1502,7 @@ class DBObjectSearch extends DBSearch { $sModifierProperties = ''; } - $aContextData['aModifierProperties'] = $aModifierProperties; + $aContextData['sModifierProperties'] = $sModifierProperties; $sRawId = $sOqlQuery.$sModifierProperties; if (!is_null($aAttToLoad)) @@ -1519,6 +1519,7 @@ class DBObjectSearch extends DBSearch } $aContextData['aGroupByExpr'] = $aGroupByExpr; $sRawId .= $bGetCount; + $aContextData['bGetCount'] = $bGetCount; if (is_array($aSelectedClasses)) { $sRawId .= implode(',', $aSelectedClasses); // Unions may alter the list of selected columns