Skip to content

Commit

Permalink
Mark hash request as sub request
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Aug 2, 2024
1 parent 06bf3a5 commit 4dd7026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SymfonyCache/UserContextListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private function getUserHash(HttpKernelInterface $kernel, Request $request): ?st

// Hash lookup request to let the backend generate the user hash
$hashLookupRequest = $this->generateHashLookupRequest($request);
$resp = $kernel->handle($hashLookupRequest);
$resp = $kernel->handle($hashLookupRequest, HttpKernelInterface::SUB_REQUEST);
// Store the user hash in memory for sub-requests (processed in the same thread).
$this->userHash = $resp->headers->get($this->options['user_hash_header']);

Expand Down

0 comments on commit 4dd7026

Please sign in to comment.