Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
I’ve checked your /post-sitemap2.xml, and it is also slow upon loading the first time.
For initial troubleshooting, please check your site’s configuration if there are some PHP values that are too low and which you should increase. You can get in touch with your web host and ask them to set the following values (if not yet):
PHP Memory Limit: 512M
Max input time: 150
PHP time limit: 120
PHP max input variables: 1000
Let us know how this goes.
Thank you.
I changed and it is still the same..
Webserver Apache
PHP-Version 7.4.33 (Unterstützt 64bit-Werte)
PHP-SAPI fpm-fcgi
Maximale PHP-Eingabe-Variablen (max_input_vars) 10000
Maximale PHP-Ausführungszeit (max_execution_time) 180
PHP-Speicher-Limit (memory_limit) 512M
Maximale Eingabe-Zeit (max_input_time) 150
Maximale Dateigröße beim Upload (upload_max_filesize) 200M
Also, I disabled WP Fastest Cache briefly it was still there.
These steps https://rankmath.com/kb/exclude-sitemaps-from-caching/ did not work either.
Even worse, when I upload a new post, it doesn’t appear in the sitemap until I increase the sitemap count under sitemap settings, for example from 200 to 201. This is a huge problem that needs to be fixed.
Finally i fixed both problems.
Cache problem:
I put add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’); into functions.php ( i use child theme) now it caches properly. Is this ok?
Slow Sitemap Problem
I use AAWP as affiliate plugin. In 2 posts zero products where listed, after i disabled shortcode it worked. Is there a way to exclude affiliate pictures from aawp in Sitemap?
Hello,
The filter you added to the website is used to prevent the transient caching of the sitemaps from our plugin, using that filter the sitemaps will always be loaded from the source and generated on the fly.
This is essentially removing the caching from the sitemaps.
Regarding the second part of the question, could you please clarify what you by 2 posts displaying zero products? Are there some pages that should be included in the sitemap that are not appearing at the moment?
Looking forward to hearing back from you.
It was a problem with the plugin AAWP where no affiliate products were displayed on two posts, therefore the sitemap loaded slowly. Is there a way to exclude these affiliate images from the sitemap? For example, the structure of the images is like this:
wp-content/plugins/aawp/public/image.php?url=aHR0cHM6Ly9tLm1lZGlhLWFtYXpv
As you can see here: https://aurandus.com/geburtsstein-november/
Each of these images from the plugin also appears in the sitemap, I don’t know if this is intentional and even necessary.
Hello,
When our plugin is generating the sitemap it loads the content of the posts to parse the images and if the AAWP plugin was having trouble adding the products to two posts it could explain the issue because our plugin would be waiting for the response from AAWP on those posts.
Regarding the images, since they are part of the pages it’s completely fine to have them added to the sitemap.
It’s not possible to remove only those images as the plugin only allows for the images to either be all on the sitemap or all of the sitemap.
Don’t hesitate to get in touch if you have any other questions.
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.