Classes/Controller/BackendController.php
public function boostAction($run = false)
    {
        $configurationService = $this->objectManager->get(ConfigurationService::class);
        $queueRepository = $this->objectManager->get(QueueRepository::class);
        if ($run) {
            $items = $queueRepository->findOpen(10);
            $queueService = GeneralUtility::makeInstance(QueueService::class);
            try {
                foreach ($items as $item) {
                    $queueService->runSingleRequest($item);
                }
            } catch (\Exception $ex) {
            }

            $this->addFlashMessage('Run ' . \count($items) . ' entries', 'Runner', FlashMessage::OK, true);
        }
        $this->view->assignMultiple([
            'enable' => (bool)$configurationService->get('boostMode'),
            'open' => \count($queueRepository->findOpen(99999999)),
            'old' => \count($queueRepository->findOld()),
        ]);
    }
public function boostAction($run = false)
    {
        $configurationService = $this->objectManager->get(ConfigurationService::class);
        $queueRepository = $this->objectManager->get(QueueRepository::class);
        if ($run) {
            $items = $queueRepository->findOpen(10);
            $queueService = GeneralUtility::makeInstance(QueueService::class);
            try {
                foreach ($items as $item) {
                    $queueService->runSingleRequest($item);
                }
            } catch (\Exception $ex) {
            }

            $this->addFlashMessage('Run ' . \count($items) . ' entries', 'Runner', FlashMessage::OK, true);
        }
        $this->view->assignMultiple([
            'enable' => (bool)$configurationService->get('boostMode'),
            'open' => \count($queueRepository->findOpen(99999999)),
            'old' => \count($queueRepository->findOld()),
        ]);
    }
public function boostAction ( $ run = false ) { $ configurationService = $ this -> objectManager -> get ( ConfigurationService :: class ) ; $ queueRepository = $ this -> objectManager -> get ( QueueRepository :: class ) ; if ( $ run ) { $ items = $ queueRepository -> findOpen ( 10 ) ; $ queueService = GeneralUtility :: makeInstance ( QueueService :: class ) ; try { foreach ( $ items as $ item ) { $ queueService -> runSingleRequest ( $ item ) ; } } catch ( \ Exception $ ex ) { } $ this -> addFlashMessage ( 'Run ' . \ count ( $ items ) . ' entries' , 'Runner' , FlashMessage :: OK , true ) ; } $ this -> view -> assignMultiple ( [ 'enable' => ( bool ) $ configurationService -> get ( 'boostMode' ) , 'open' => \ count ( $ queueRepository -> findOpen ( 99999999 ) ) , 'old' => \ count ( $ queueRepository -> findOld ( ) ) , ] ) ; }
Boost action.

@param bool $run
Boost action .