nuxt-modules / sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
https://nuxtseo.com/sitemap
336 stars 31 forks source link

fix: Subsitemap pages are not stored in a custom cache driver (e.g. redis) when automatic chunking is enabled #339

Open censujiang opened 3 months ago

censujiang commented 3 months ago

🐛 The bug

As the title suggests, only sitemap_index.xml is cached

🛠ī¸ To reproduce

https://stackblitz.com/edit/nuxt-starter-s4npgl?file=nuxt.config.ts

🌈 Expected behavior

As long as I set up sitemap caching, all sitemap pages need to be cached to the correct drive, not to memory. If this is not the case, it will cause memory leaks when running on Bun.

ℹī¸ Additional context

No response