DenyAdminRoutes

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

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.
doc_Drupal
2016-10-29 09:02:11
Comments
Leave a Comment

Please login to continue.