• stopps

    (@stopps)


    Morning All,

    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).

    We are running WordPress 4.8.3, ACF PRO 5.6.5, Yoast Premium 5.4 and version 2.0.1 of this plugin.

    We’ve had to disable this plugin at this stage, because the spikes are consuming too much server resources.

    Feel free to ask for more information as required.

    All the best,

    Julian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Thomas Kr?ftner

    (@kraftner)

    Thanks for reporting and all the detailed information. I just have some more. ?? Do you have Image and/or Gallery fields added to the page?

    I haven’t tracked this down yet but I suspect that it is related to the scrapers for those fields. Could you try disabling the support for those fields and see if the issue goes away?

    add_filter( 'yoast-acf-analysis/blacklist_type', function ( $blacklist_type ) {
        $blacklist_type->add( 'image' );
        $blacklist_type->add( 'gallery' );
        return $blacklist_type; 
    });
    Thread Starter stopps

    (@stopps)

    Hi Thomas,

    Thanks for the prompt response. We do have image fields used in some of the custom field groups.

    We have implemented the function you have provide and it does seem to have had a positive impact, when testing on our staging server (less calls). We will push to production and monitor it there and let you know of the outcome.

    All the best,

    Julian

    Plugin Contributor Thomas Kr?ftner

    (@kraftner)

    I’m glad this helped. I just wanted to reiterate that this effectively disables the analysis of images and gallery fields but as a temporary workaround it should be fine.

    I have also created an issue in github for further investigation in case you want to follow that as well: https://github.com/Yoast/yoast-acf-analysis/issues/120

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘High Number of ‘query-attachments’’ is closed to new replies.