- Issue created by @k_a_l
- last update
about 1 year ago 4 pass - Status changed to Fixed
about 1 year ago 9:27am 28 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Webprofiler is reporting several thousand database queries as a result of negotiating the active site in the `processOutbound` method in the Drupal\micro_node\HttpKernel\MicroNodeOutboundPathProcessor, and is impacting site performance. The `$this->negotiator->getActiveSite()` seems to be called for every internal link that's rendered, including all admin links in the toolbar when logged in.
Checking if the derived entity is an instance of NodeInterface before calling `getActiveSite()` seems to drastically reduce the number of queries ran on page load.
Fixed
Code
Automatically closed - issue fixed for 2 weeks with no activity.