dynamic_page_cache.services.yml

Same filename in other branches
  1. 9 core/modules/dynamic_page_cache/dynamic_page_cache.services.yml
  2. 8.9.x core/modules/dynamic_page_cache/dynamic_page_cache.services.yml
  3. 11.x core/modules/dynamic_page_cache/dynamic_page_cache.services.yml
core/modules/dynamic_page_cache/dynamic_page_cache.services.yml

File

core/modules/dynamic_page_cache/dynamic_page_cache.services.yml

View source
  1. services:
  2. _defaults:
  3. autoconfigure: true
  4. cache.dynamic_page_cache:
  5. class: Drupal\Core\Cache\CacheBackendInterface
  6. tags:
  7. - { name: cache.bin }
  8. factory: ['@cache_factory', 'get']
  9. arguments: [dynamic_page_cache]
  10. variation_cache.dynamic_page_cache:
  11. class: Drupal\Core\Cache\VariationCacheInterface
  12. factory: ['@variation_cache_factory', 'get']
  13. arguments: [dynamic_page_cache]
  14. dynamic_page_cache_subscriber:
  15. class: Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber
  16. arguments: ['@dynamic_page_cache_request_policy', '@dynamic_page_cache_response_policy', '@variation_cache.dynamic_page_cache', '@cache_contexts_manager', '%renderer.config%']
  17. # Request & response policies.
  18. dynamic_page_cache_request_policy:
  19. class: Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy
  20. tags:
  21. - { name: service_collector, tag: dynamic_page_cache_request_policy, call: addPolicy}
  22. dynamic_page_cache_response_policy:
  23. class: Drupal\Core\PageCache\ChainResponsePolicy
  24. tags:
  25. - { name: service_collector, tag: dynamic_page_cache_response_policy, call: addPolicy}
  26. lazy: true
  27. dynamic_page_cache_deny_admin_routes:
  28. class: Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes
  29. arguments: ['@current_route_match']
  30. public: false
  31. tags:
  32. - { name: dynamic_page_cache_response_policy }

Services

Title Deprecated Summary
cache.dynamic_page_cache Drupal\Core\Cache\CacheBackendInterface
dynamic_page_cache_deny_admin_routes Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes
dynamic_page_cache_request_policy Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy
dynamic_page_cache_response_policy Drupal\Core\PageCache\ChainResponsePolicy
dynamic_page_cache_subscriber Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber
variation_cache.dynamic_page_cache Drupal\Core\Cache\VariationCacheInterface
_defaults

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.