사이트맵: `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