Sitemap

#391347
  • Resolved John
    Rank Math free

    Good time of day.

    Sitemap is not updated, data is taken from the DB table _options where option_name like ‘_transient_sitemap_%’. Old data is stored there.
    I guess the problem is caching.
    Owner: webmaster
    Group: www-data
    Access to all directories: 755
    Exception /wp-content/uploads: 777

    If you change Owner = www-data on all directories and files, then the problem is solved, sittemap is updated.
    Also, the problem can be temporarily solved by clearing the delete table from where option_name like ‘%_transient_sitemap_%’. After cleaning, it is filled with updated data.

    Is it possible to configure the sitemap update to work if Owner <> www-data and Owner does not have write access, except for the /wp-content/uploads/ directory and its subdirectories?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience caused.

    Please add this filter to your website and see if that helps:

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

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes.

    We are here to assist you.

    John
    Rank Math free

    Thank you so much for your help!!!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question 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 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.