mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N.1065 Fix performance issues.
* Does not cache requests containing "id NOT IN ..." (too specific) SVN:trunk[5019]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user