Commit c8c896987300620ba122238b8c08452df8193420
1 parent
69d82cdf
- sleep
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
libs/catalogs.class.php
@@ -3547,7 +3547,7 @@ function viewTmpProducts () | @@ -3547,7 +3547,7 @@ function viewTmpProducts () | ||
3547 | 3547 | ||
3548 | if (($i % 30) == 0) | 3548 | if (($i % 30) == 0) |
3549 | { | 3549 | { |
3550 | - sleep(1); | 3550 | + sleep (1); |
3551 | } | 3551 | } |
3552 | 3552 | ||
3553 | $i++; | 3553 | $i++; |
@@ -3584,7 +3584,7 @@ function CronImportCSV_cine($upload) | @@ -3584,7 +3584,7 @@ function CronImportCSV_cine($upload) | ||
3584 | function updateCountModificationProducts () | 3584 | function updateCountModificationProducts () |
3585 | { | 3585 | { |
3586 | $res = $this->db->getAll(" | 3586 | $res = $this->db->getAll(" |
3587 | - select * | 3587 | + select id |
3588 | from catalogs_products | 3588 | from catalogs_products |
3589 | ", array (), DB_FETCHMODE_ASSOC); | 3589 | ", array (), DB_FETCHMODE_ASSOC); |
3590 | 3590 | ||
@@ -3602,9 +3602,7 @@ function updateCountModificationProducts () | @@ -3602,9 +3602,7 @@ function updateCountModificationProducts () | ||
3602 | 3602 | ||
3603 | $this->db->autoExecute ("catalogs_products", array ( | 3603 | $this->db->autoExecute ("catalogs_products", array ( |
3604 | 'count_modifications' => $count | 3604 | 'count_modifications' => $count |
3605 | - ), DB_AUTOQUERY_UPDATE, "id='" . $row ['id'] . "'"); | ||
3606 | - | ||
3607 | - // if(($i%10)==0)sleep(10); | 3605 | + ), DB_AUTOQUERY_UPDATE, "id='" . $row['id'] . "'"); |
3608 | 3606 | ||
3609 | $i ++; | 3607 | $i ++; |
3610 | } | 3608 | } |