Sitemap: サイトマップの `lastmod` が間違っている

トピックを異なるサイトマップチャンクに移動することではありません。トピックは、すでに存在しているのと同じサイトマップチャンク内に留まることができます。
(トピックとサイトマップチャンクのマッピングは、limit を持つ db の select ステートメントに order が定義されていないため、いずれにしても任意です。)

バグレポートは、各サイトマップチャンクの lastmod 日付が、サイトマップチャンクに含まれる最新トピックの lastmod 日付を表すべきであるということです。

Google の手順は次のようになります。

  1. sitemap.xml を読み込みます。
    → サイトマップチャンクの lastmod を確認し、更新が必要なサイトマップチャンクをキューに入れます。
    (lastmod 日付が前回ダウンロード時より新しい場合)

  2. キューに入れられたサイトマップチャンク sitemap_[1-5].xml を読み込みます。
    → トピック URL の lastmod を確認し、更新が必要なトピック URL をキューに入れます。
    (lastmod 日付が前回ダウンロード時より新しい場合)

  3. キューに入れられたトピック URL を読み込みます。

sitemap.xml のサイトマップチャンクの lastmod が間違っている場合:
→ Google は変更されたサイトマップチャンクをキューに入れません(ステップ 1)。
→ Google は変更されたサイトマップチャンクを適時に更新しません(ステップ 2)。
→ Google は変更されたトピックを適時に更新しません(ステップ 3)。

現在、https://meta.discourse.org/sitemap.xml は次のようになっています。

  • https://meta.discourse.org/sitemap_1.xml
    lastmod: 2024-03-19T12:50:09Z
    内部のすべてのトピックは古いか同じ日付ですか? :github_check:

    • 最新トピック: https://meta.discourse.org/t/creating-a-stickypost-for-forum-threads/299967
      lastmod: 2024-03-19T11:03:38Z
  • https://meta.discourse.org/sitemap_2.xml
    lastmod: 2024-03-16T12:59:17Z
    内部のすべてのトピックは古いか同じ日付ですか? :x:

    • 最新トピック: https://meta.discourse.org/t/launcher-rebuild-app-error-bootstrap-failed-with-exit-code-125/299538
      lastmod: 2024-03-19T09:17:46Z
  • https://meta.discourse.org/sitemap_3.xml
    lastmod: 2024-03-16T12:59:17Z
    内部のすべてのトピックは古いか同じ日付ですか? :x:

    • 最新トピック: https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites/49487
      lastmod: 2024-03-18T18:16:26Z
  • https://meta.discourse.org/sitemap_4.xml
    lastmod: 2024-03-16T12:59:17Z
    内部のすべてのトピックは古いか同じ日付ですか? :x:

    • 最新トピック: https://meta.discourse.org/t/video-thumbnails-issue/263595
      lastmod: 2024-03-19T00:00:20Z
  • https://meta.discourse.org/sitemap_5.xml
    lastmod: 2024-03-16T12:59:17Z
    内部のすべてのトピックは古いか同じ日付ですか? :x:

    • 最新トピック: https://meta.discourse.org/t/daily-summary-9pm-utc/291850
      lastmod: 2024-03-18T21:14:49Z
  • https://meta.discourse.org/sitemap_recent.xml
    2024-03-19T13:03:41Z
    内部のすべてのトピックは古いか同じ日付ですか? :github_check:

    • 最新トピック: https://meta.discourse.org/t/daily-summary-1pm-utc/291852
      lastmod: 2024-03-19T13:02:07Z