class DenyNoCacheRoutes

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

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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!PageCache!ResponsePolicy!DenyNoCacheRoutes.php/class/DenyNoCacheRoutes/8.1.x