Fixing issue with too many calls to admin-ajax.#128
Fixing issue with too many calls to admin-ajax.#128fmolina24 wants to merge 4 commits intoYoast:developfrom
Conversation
- Added validation before attachment_id gets added to array.
|
Travis CI build is failing due to maximum warnings reached seems the more instances attachment_id of brought it over the max. |
|
Thanks for your PR! 🎉 |
|
@kraftner Moved the check into the cache refresh function. The empty id seem to to happen due to an image has not been set on a image field or gallery field the value is empty when the scrapper gets to it. |
|
Hi, Too much get-attachement admin-ajax.php requests with yoasts plugin enabled When I edit a page of the site the loading time is very high and the consumption of RAM and CPU is also very high. In the network inspector I see that there are too many requests to the admin-ajax.php script with the get-attachment method. This happens when I have the Yoast SEO plugin activated, if I deactivate Yoast these requests are not made. I have all the plugins updated. Screenshot: https://pasteboard.co/JCttWFz.jpg https://pasteboard.co/JCtu9kf.jpg How can I solve? ---- Configuration ---- I tried PHP 7.2, 7.3 and 7.4 |
Summary
This PR can be summarized in the following changelog entry:
Test instructions
Fixes #