mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 12:46:38 +02:00
[ticket/15379] Only initialize reparsers on first call in migration
PHPBB3-15379
This commit is contained in:
@ -54,6 +54,8 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||
/** @var manager $reparser_manager */
|
||||
$reparser_manager = $this->container->get('text_reparser.manager');
|
||||
|
||||
if (!is_array($resume_data))
|
||||
{
|
||||
/** @var reparser_interface[] $reparsers */
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
// Sometimes a cron job is too much
|
||||
$limit = 100;
|
||||
|
Reference in New Issue
Block a user