How to efficiently serve massive sitemaps in django

后端 未结 4 1784
傲寒
傲寒 2021-02-01 22:37

I have a site with about 150K pages in its sitemap. I\'m using the sitemap index generator to make the sitemaps, but really, I need a way of caching it, because building the 150

4条回答
  •  被撕碎了的回忆
    2021-02-01 23:13

    For those who (for whatever reason) would prefer to keep their sitemaps dynamically generated (eg freshness, lazyness). Try django-sitemaps. It's a streaming version of the standard sitemaps. Drop-in replacement. Much faster response time and uses waaaaay less memory.

提交回复
热议问题