// Revert search
This commit is contained in:
1 parent
0af197daf3
commit
6c4a2f05f2
1 file changed
+1
-3
+1
-3
@@ -445,9 +445,7 @@ class SearchCore
|
|||||||
$total_languages = count(Language::getLanguages(false));
|
$total_languages = count(Language::getLanguages(false));
|
||||||
|
|
||||||
// Products are processed 50 by 50 in order to avoid overloading MySQL
|
// Products are processed 50 by 50 in order to avoid overloading MySQL
|
||||||
$count = count($products);
|
while (($products = Search::getProductsToIndex($total_languages, $id_product, 50)) && $count > 0)
|
||||||
$products = Search::getProductsToIndex($total_languages, $id_product, 50);
|
|
||||||
while ($products && $count > 0)
|
|
||||||
{
|
{
|
||||||
// Now each non-indexed product is processed one by one, langage by langage
|
// Now each non-indexed product is processed one by one, langage by langage
|
||||||
foreach ($products as $product)
|
foreach ($products as $product)
|
||||||
|
|||||||
Reference in new issue
Block a user