Reduce the number of API requests sent to the /api/v1/apikey-status endpoint

Created on 2 February 2024, 11 months ago
Updated 29 February 2024, 10 months ago

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.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024