| @@ 136-149 (lines=14) @@ | ||
| 133 | usleep( $throttle * 1000 ); |
|
| 134 | } |
|
| 135 | ||
| 136 | if ( $dbw->insert( |
|
| 137 | 'updatelog', |
|
| 138 | [ 'ul_key' => 'populate category' ], |
|
| 139 | __METHOD__, |
|
| 140 | 'IGNORE' |
|
| 141 | ) ) { |
|
| 142 | $this->output( "Category population complete.\n" ); |
|
| 143 | ||
| 144 | return true; |
|
| 145 | } else { |
|
| 146 | $this->output( "Could not insert category population row.\n" ); |
|
| 147 | ||
| 148 | return false; |
|
| 149 | } |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| @@ 1580-1586 (lines=7) @@ | ||
| 1577 | return false; |
|
| 1578 | } |
|
| 1579 | ||
| 1580 | if ( $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, 'IGNORE' ) ) { |
|
| 1581 | return true; |
|
| 1582 | } else { |
|
| 1583 | $this->output( $this->updatelogFailedMessage() . "\n" ); |
|
| 1584 | ||
| 1585 | return false; |
|
| 1586 | } |
|
| 1587 | } |
|
| 1588 | ||
| 1589 | /** |
|