Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Pedro,

    When the plugin doesn’t find an appropriate hook to refresh a sitemap, WordPress will automatically flush it, regardless, after 7 days. I see you’ve disabled the caching for now, that’s fine too ??

    There are many reasons why the translated sitemaps aren’t flushed on save when using translation plugins, and I’ll have to look into this issue. I’ve added it to my TODO list for TSF v3.1, and I suspect I’ll have to add a second flush for the user-locale, next to the site-locale.

    Note that a flush of all (3+) sitemaps at once won’t happen, on actions like changing the permalinks. On some sites, this could yield another hundred database requests, probably crashing the site.

    For what it’s worth, if you haven’t done so already, be sure that the 404 pages also send out a 404 signal; this will help you track down broken links. There are many plugins for this.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Pedro,

    I looked into it, and when a post is updated, WPML doesn’t adjust the WordPress locale to the post’s language. I could fix this for them, but I believe they rely on the base language on some parts during the post-update process — it’ll probably destroy your website if I apply this fix.

    So, you should ping and tell them other plugins can’t access the correct WordPress locale (via get_locale()) on post update. It probably won’t be fixed, given the complex nature of this.

    However, the sitemap gets flushed automatically; so it’s not a problem for most websites that don’t rely on real-time data (like news websites).

    You can solve the issue by disabling the transient cache. I see you’ve already done that.
    In a future version, we’re going to put the sitemap on steroids, using PHP 5.5 generators, so caching won’t be a needed.

    Because there’s nothing left to bring into this, I’m going to mark this topic as “resolved”.

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi, Sybre

    Thanks for the feedback. The sitemaps are all updated after a week time. Still have a entry that don′t know how to remove (header as custom post) that I will submit in another topic.

    Regards,

    Pedro

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi again, Sybre

    Just found the topic with my exact problem and already solved. Great!

    Awesome! ??

    Cheers

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Plugin Author Sybre Waaijer

    (@cybr)

    That’s great Pedro ??

    There’ll be an option in the upcoming version. A preview is seen here:

    Edit: …And all sitemaps will be flushed when using WPML on various actions, too.

    • This reply was modified 6 years, 4 months ago by Sybre Waaijer. Reason: New features
    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Splendid! ??

    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Hi, Sybre

    Meanwhile I opened a ticket at WPML support with your suggestion. They are escalating the issue.

    Cheers

    Plugin Author Sybre Waaijer

    (@cybr)

    @pchenriques you can tell them to forfeit the endeavor. Sending the locale when updating a post is a good idea. Clearing the sitemap for us isn’t needed.

    I found a way to do this already. My apologies for not notifying you about these changes.

    Click here to see the code, for reference.

    What it does is binding with the “clear sitemap” hook, on any site, and it’ll clear them all.

    • This reply was modified 6 years, 4 months ago by Sybre Waaijer. Reason: I spoke too soon
    Thread Starter Pedro Cavaco Henriques

    (@pchenriques)

    Ok, thanks.

    It seems next version will be full of new features ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘multi language sitemaps not updating’ is closed to new replies.