add chunk limiter

This commit is contained in:
team 1
2026-02-16 15:29:31 +01:00
parent b04f972971
commit feff95ffe5
7 changed files with 239 additions and 31 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Controller\Admin;
use App\Index\IndexMetaManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
@@ -15,4 +16,15 @@ final class DashboardController extends AbstractController
return $this->render('admin/dashboard/index.html.twig');
}
#[Route('/admin/dashboard', name: 'admin_dashboard')]
public function dashboard(IndexMetaManager $metaManager): Response
{
$chunkCount = $metaManager->getRuntimeChunkCount();
$limit = 120000;
return $this->render('admin/dashboard/index.html.twig', [
'chunkCount' => $chunkCount,
'chunkLimit' => $limit,
]);
}
}