- Issue created by @tstoeckler
If \Drupal\consumers\Negotiator::negotiateFromRequest()
is called multiple times for the same request (and if the request actually has a consumer ID header) each call will incur a database query to load the respective consumer.
-
Since we already store the consumer UUID as a request attribute, we might as well check if the given request already has that set and then early return without (re-)loading the consumer.
-
-
-
Active
1.0
Code