Skip to content
Snippets Groups Projects
Commit 5f9875c9 authored by catch's avatar catch
Browse files

Merge branch '3414373-route-preloading-doesnt' into '11.x'

Revert "Avoid reading the session multiple times from the database in a single request."

See merge request !6146
parents 865b8f43 ac2640ce
No related branches found
No related tags found
No related merge requests found
Pipeline #96011 failed
Pipeline: drupal

#96014

    ......@@ -124,7 +124,7 @@ public static function getSubscribedEvents(): array {
    $events[RoutingEvents::FINISHED] = ['onFinishedRoutes'];
    // Load the routes before the controller is executed (which happens after
    // the kernel request event).
    $events[KernelEvents::REQUEST][] = ['onRequest'];
    $events[KernelEvents::REQUEST][] = ['onRequest', 30];
    return $events;
    }
    ......
    ......@@ -35,9 +35,9 @@ public function testFrontPageAuthenticatedWarmCache(): void {
    $performance_data = $this->collectPerformanceData(function () {
    $this->drupalGet('<front>');
    }, 'authenticatedFrontPage');
    $this->assertGreaterThanOrEqual(15, $performance_data->getQueryCount());
    $this->assertLessThanOrEqual(17, $performance_data->getQueryCount());
    $this->assertSame(45, $performance_data->getCacheGetCount());
    $this->assertGreaterThanOrEqual(14, $performance_data->getQueryCount());
    $this->assertLessThanOrEqual(16, $performance_data->getQueryCount());
    $this->assertSame(44, $performance_data->getCacheGetCount());
    $this->assertSame(0, $performance_data->getCacheSetCount());
    $this->assertSame(0, $performance_data->getCacheDeleteCount());
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment