Skip to content
Snippets Groups Projects
Commit 473d8308 authored by Jess's avatar Jess
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment