Pārlūkot izejas kodu

N.1065 Fix performance issues.
* Does not cache requests containing "id NOT IN ..." (too specific)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@5019 a333f486-631f-4898-b8df-5754b55c2be0

eespie 7 gadi atpakaļ
vecāks
revīzija
d6efb4da03
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/dbobjectsearch.class.php

+ 1 - 1
core/dbobjectsearch.class.php

@@ -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;