N.1065 Fix performance issues.

* Does not cache requests containing "id NOT IN ..." (too specific)

SVN:trunk[5019]
This commit is contained in:
Eric Espié
2017-10-12 15:31:14 +00:00
parent 79b887d189
commit 38796f9d0c

View File

@@ -1485,7 +1485,7 @@ class DBObjectSearch extends DBSearch
// Need to identify the query
$sOqlQuery = $oSearch->ToOql(false, null, true);
if (strpos($sOqlQuery, '`id` IN ('))
if ((strpos($sOqlQuery, '`id` IN (') !== false) || (strpos($sOqlQuery, '`id` NOT IN (') !== false))
{
// Requests containing "id IN" are not worth caching
$bCanCache = false;