yoast-acf-analysis icon indicating copy to clipboard operation
yoast-acf-analysis copied to clipboard

High Number of ‘query-attachments’

Open kraftner opened this issue 7 years ago • 10 comments

A user reported this in the forum:

We are seeing an issue when we have this plugin enabled where there are multiple calls being made to /wp-admin/admin-ajax.php when editing a page. The POST variables details are:

query[post__in][]: action:query-attachments

On initially entering the editing of the page we see 3 or 4 identical calls to this method, but for some users this can spike to up to 40 (these seem to be users on lower bandwidth). https://wordpress.org/support/topic/high-number-of-query-attachments/

This seems to come from https://github.com/Yoast/yoast-acf-analysis/blob/6f5373b93cb392a210282da21f5a304472f9b5e6/js/src/cache/cache.attachments.js#L11-L15 but I'm not sure what exactly is going on. Needs further investigation.

Technical info

  • WordPress version: 4.8.3
  • ACF Content Analysis for Yoast SEO version: 2.0.1
  • Yoast SEO version: 5.4
  • ACF type: PRO
  • ACF version: 5.6.5
  • Relevant plugins in case of a bug:

kraftner avatar Nov 14 '17 13:11 kraftner

I can also confirm this in WP 4.9.1 and 4.9.2 with ACF Pro 5.6.7 and Yoast SEO 6.1.1. PHP 7.2.

screen shot 2018-01-18 at 15 40 54

steveperrycreative avatar Jan 18 '18 15:01 steveperrycreative

Do we have a timeline for this? It's quite a critical issue and can take servers offline due to load.

steveperrycreative avatar Jan 22 '18 09:01 steveperrycreative

Unfortunately everyone involved seems to be busy these days, so I can't really give you an ETA.

If you feel like helping to speed up the process feel free to file a PR :wink:

kraftner avatar Jan 23 '18 10:01 kraftner

@kraftner thanks for the response. I appreciate the work involved and the process behind it. I'll see what I can do.

steveperrycreative avatar Jan 23 '18 10:01 steveperrycreative

Has this plugin been abandoned or what? I thought Yoast's team was going to maintain it?

gavin310 avatar May 30 '18 14:05 gavin310

@kraftner Please fix this terrible bug!

nrdq avatar Jun 14 '18 13:06 nrdq

Is this still an issue?

kristjan72 avatar Aug 19 '19 11:08 kristjan72

I've not noticed any issues lately but not 100% sure.

steveperrycreative avatar Aug 19 '19 11:08 steveperrycreative

Hi, i still have the problem.

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 ---- Theme The7 v.9.3.1 The7 WPBackery Page Builder 6.4.2 Ultimate Addons for WPBakery Page Builder 3.19.7 Yoast SEO 15.3

I tried PHP 7.2, 7.3 and 7.4 PHP Max Input Vars: 10000 PHP Memory Limit: 512 MB PHP Time Limit: 360

fisaman avatar Nov 28 '20 16:11 fisaman

The bug still exists, had to disable the plugin on a client's website today.

Bernier154 avatar Feb 21 '24 19:02 Bernier154