Skip to content

Commit

Permalink
[BUGFIX] Clear state of the persistence memory after given chunk of d…
Browse files Browse the repository at this point in the history
…ata was indexed (#1202)

Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 21, 2024
1 parent 80508d7 commit 6f570be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Command/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
// Clear document cache to prevent memory exhaustion.
AbstractDocument::clearDocumentCache();
// Clear state of persistence manager to prevent memory exhaustion.
$this->persistenceManager->clearState();
}

// Clear state of persistence manager to prevent memory exhaustion.
$this->persistenceManager->clearState();

$io->success('All done!');

return BaseCommand::SUCCESS;
Expand Down

0 comments on commit 6f570be

Please sign in to comment.