We've observed an issue with excessive requests being sent to the `/api/v1/apikey-status` endpoint, leading to server performance problems. For instance, `hook_form_node_form_alter()` sends this request for the edited node, and `hook_field_widget_complete_form_alter()` sends the same request multiple times, once for each field/widget on the currently edited node. Much of this seems unnecessary. Sending an API request to check apiKey validity and then deciding whether to display the iframe or not for each field doesn't seem necessary.
Moreover, the mentioned project has `drupal/autosave_form` module active, compounding the issue by triggering these requests every 4-5 seconds.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3418906-3.patch | 4.46 KB | dejan0 |
#2 | 3418906-2.patch | 4.64 KB | dejan0 |
Comments
Comment #2
dejan0 CreditAttribution: dejan0 at acolono GmbH commentedplease find the patch that removes most of those API calls
Comment #3
dejan0 CreditAttribution: dejan0 at acolono GmbH commentedre-roll the patch against older drupal/sidekick version
Comment #4
shyam-sawhney CreditAttribution: shyam-sawhney at acolono GmbH for BetterWorld / BessereWelt Info commented