Rankmath xml files found in wp-content/uploads folder — what if — ?

#328998
  • Resolved Faustine
    Rank Math free

    Hi support,

    Originally / currently(still), all WP uploads are stored in the default folder.

    But am going to change the WP uploads folder to a subdomain — ie, media.domain.com — ideally I wanted to just shift Woocommerce product photos over to that subdomain but it may not be possible. (everything in the default uploads folder would have to be moved to the subdomain)

    What will happen to these Rankmath xml files ? (Can I do without them?)

    Have to clarify on this first before I start the process.

    Google Drive — Screenshot of some the xml files.(wp-content/uploads)

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math today.

    The XML file about Rank Math in the uploads folder are only cache files for the sitemap and if you add the filter to remove the caching of the sitemaps those wouldn’t even show there.

    Here’s the filter we are talking about:

    
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    ​​​​​​So, it’s safe to say that you don’t need those XML files unless you would like to cache our sitemap, which is not recommended for most websites.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    Thanks for your reply.

    As mentioned by you earlier, since XML = cache files, which is not recommended for most websites, I shall remove these files henceforth.

    Also :

    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’); — for this code snippet i can just add it into Code snippet plugin to have it function to disable caching ?

    *Edit :

    Found a way to add code in your https://rankmath.com/kb/filters-hooks-api-developer/ — site.

    So I just went ahead to create the Rank-math.php file in my Child theme folder then add the filter code there.

    Thanks!

    Anas
    Rank Math business

    Hello,

    If you have any questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Rankmath xml files found in wp-content/uploads folder — what if — ?’ is closed to new replies.