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

Created on 2 February 2024, 5 months ago
Updated 29 February 2024, 4 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.69.0 2024