Update to Drupal 8.1.8. For more information, see https://www.drupal.org/project/drupal/releases/8.1.8
This commit is contained in:
parent
e9f047ccf8
commit
f9f23cdf38
312 changed files with 6751 additions and 1546 deletions
|
@ -124,8 +124,8 @@ class DynamicPageCacheSubscriber implements EventSubscriberInterface {
|
|||
*/
|
||||
public function onRouteMatch(GetResponseEvent $event) {
|
||||
// Don't cache the response if the Dynamic Page Cache request policies are
|
||||
// not met. Store the result in a request attribute, so that onResponse()
|
||||
// does not have to redo the request policy check.
|
||||
// not met. Store the result in a static keyed by current request, so that
|
||||
// onResponse() does not have to redo the request policy check.
|
||||
$request = $event->getRequest();
|
||||
$request_policy_result = $this->requestPolicy->check($request);
|
||||
$this->requestPolicyResults[$request] = $request_policy_result;
|
||||
|
|
Reference in a new issue