Cache policy for routes with the '_admin_route' option set.
This policy rule denies caching of responses generated for admin routes, because admin routes have very low cache hit ratios due to low traffic and form submissions.
Hierarchy
- class \Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes implements ResponsePolicyInterface
File
- core/modules/dynamic_page_cache/src/PageCache/ResponsePolicy/DenyAdminRoutes.php, line 17
Namespace
Drupal\dynamic_page_cache\PageCache\ResponsePolicy
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DenyAdminRoutes::$routeMatch | protected | property | The current route match. |
DenyAdminRoutes::check | public | function | Determines whether it is save to store a page in the cache. Overrides ResponsePolicyInterface::check |
DenyAdminRoutes::__construct | public | function | Constructs a deny admin route page cache policy. |
ResponsePolicyInterface::DENY | constant | Deny storage of a page in the cache. |
Please login to continue.