You are here

service http_middleware.page_cache in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/page_cache/page_cache.services.yml \http_middleware.page_cache
  2. 9 core/modules/page_cache/page_cache.services.yml \http_middleware.page_cache

Class

Drupal\page_cache\StackMiddleware\PageCache

Tags

  • http_middleware
1 string reference to http_middleware.page_cache
StackKernelIntegrationTest::testLazyLateMiddlewares in core/tests/Drupal/KernelTests/Core/HttpKernel/StackKernelIntegrationTest.php
Tests that late middlewares are automatically flagged lazy.

File

core/modules/page_cache/page_cache.services.yml
core/modules/page_cache/page_cache.services.yml

View source
  1. class: Drupal\page_cache\StackMiddleware\PageCache
  2. arguments:
  3. - '@cache.page'
  4. - '@page_cache_request_policy'
  5. - '@page_cache_response_policy'
  6. tags:
  7. - { name: http_middleware, priority: 200, responder: true }