-
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.
The ticket ‘Rank Math + ACF Analysis: Multiple empty ‘query-attachments’ ajax call’ is closed to new replies.