Cache policy for routes with the 'no_cache' option set.
This policy rule denies caching of responses generated for routes that have the 'no_cache' option set to TRUE.
Hierarchy
- class \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes implements ResponsePolicyInterface
File
- core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php, line 16
Namespace
Drupal\Core\PageCache\ResponsePolicy
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DenyNoCacheRoutes::$routeMatch | protected | property | The current route match. |
DenyNoCacheRoutes::check | public | function | Determines whether it is save to store a page in the cache. Overrides ResponsePolicyInterface::check |
DenyNoCacheRoutes::__construct | public | function | Constructs a deny node preview page cache policy. |
ResponsePolicyInterface::DENY | constant | Deny storage of a page in the cache. |
Please login to continue.