Commit 473d8308 authored by xjm's avatar xjm

Issue #2759247 by Wim Leers: Request attribute removed from...

Issue #2759247 by Wim Leers: Request attribute removed from DynamicPageCacheSubscriber, but comment was not updated
parent 3a13f946
......@@ -124,8 +124,8 @@ public function __construct(RequestPolicyInterface $request_policy, ResponsePoli
*/
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment