mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
[ticket/15379] Only initialize reparsers on first call in migration
PHPBB3-15379
This commit is contained in:
parent
4069cdd518
commit
e41819e37a
1 changed files with 9 additions and 6 deletions
|
@ -54,6 +54,8 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||||
/** @var manager $reparser_manager */
|
/** @var manager $reparser_manager */
|
||||||
$reparser_manager = $this->container->get('text_reparser.manager');
|
$reparser_manager = $this->container->get('text_reparser.manager');
|
||||||
|
|
||||||
|
if (!is_array($resume_data))
|
||||||
|
{
|
||||||
/** @var reparser_interface[] $reparsers */
|
/** @var reparser_interface[] $reparsers */
|
||||||
$reparsers = $this->container->get('text_reparser_collection');
|
$reparsers = $this->container->get('text_reparser_collection');
|
||||||
|
|
||||||
|
@ -62,6 +64,7 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||||
{
|
{
|
||||||
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Sometimes a cron job is too much
|
// Sometimes a cron job is too much
|
||||||
$limit = 100;
|
$limit = 100;
|
||||||
|
|
Loading…
Add table
Reference in a new issue