• Resolved robertrosanke

    (@robertrosanke)


    Hello.

    As described in this post about the sitemap I added additional URLs to the sitemap using add_filter('the_seo_framework_sitemap_additional_urls', ...);.

    That worked so far.

    Now, according to the TSF documentation about the sitemap, the sitemap is not dynamically generated, but cached.

    The following actions should trigger an update:

    • Update or publish any type of post or page
    • Update the permalink settings
    • Or update the SEO settings

    The contents of the added links are managed via a plugin settings page.
    That explains why the sitemap isn’t updating.

    I called flush_rewrite_rules() after updating the plugin settings and content.
    However, it doesn’t seem to work.
    The sitemap does not show the new links.

    It works when I manually update any page from the admin interface.

    How can I programmatically update the sitemap after updating the plugin settings?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update sitemap programmatically’ is closed to new replies.