You are here

dynamic_page_cache.services.yml in Drupal 8

Same filename and directory in other branches
  1. 9 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. cache.dynamic_page_cache:
  3. class: Drupal\Core\Cache\CacheBackendInterface
  4. tags:
  5. - { name: cache.bin }
  6. factory: cache_factory:get
  7. arguments: [dynamic_page_cache]
  8. dynamic_page_cache_subscriber:
  9. class: Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber
  10. arguments: ['@dynamic_page_cache_request_policy', '@dynamic_page_cache_response_policy', '@render_cache', '%renderer.config%']
  11. tags:
  12. - { name: event_subscriber }
  13. # Request & response policies.
  14. dynamic_page_cache_request_policy:
  15. class: Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy
  16. tags:
  17. - { name: service_collector, tag: dynamic_page_cache_request_policy, call: addPolicy}
  18. dynamic_page_cache_response_policy:
  19. class: Drupal\Core\PageCache\ChainResponsePolicy
  20. tags:
  21. - { name: service_collector, tag: dynamic_page_cache_response_policy, call: addPolicy}
  22. lazy: true
  23. dynamic_page_cache_deny_admin_routes:
  24. class: Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes
  25. arguments: ['@current_route_match']
  26. public: false
  27. tags:
  28. - { name: dynamic_page_cache_response_policy }