Rank Math + ACF Analysis: Multiple empty ‘query-attachments’ ajax call

#26334
  • Resolved Hawkidoki
    Rank Math free

    Hello,

    Just to let you know that Rank Math does multiple empty ‘query-attachments’ ajax call on admin page load when ACF is activated. Here are the screenshots: https://imgur.com/a/NDIn0Kk

    The problem come from \seo-by-rank-math\includes\modules\acf\assets\src\attachmentCache.js:19.

    Sometimes uncached is an array with only one key that is empty, resulting in an unnecessary & empty ajax call. Here is the fix:

    Replace:

    if ( 0 === uncached.length ) {

    With:

    if ( 0 === uncached.length || ( 1 === uncached.length && '' === uncached[0] ) ) {

    Regards.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    This is a great find! I have passed on the problem and the fix to our dev team and we will be getting back to you in a short while to discuss this further.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Rank Math + ACF Analysis: Multiple empty ‘query-attachments’ ajax call’ is closed to new replies.