Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to cache generated sitemap using event populate? #342

Open
unclebee10 opened this issue Apr 25, 2024 · 1 comment
Open

how to cache generated sitemap using event populate? #342

unclebee10 opened this issue Apr 25, 2024 · 1 comment
Labels

Comments

@unclebee10
Copy link

Using sitemap generate through following these instructions and configuration to changefreq daily Dynamic routes usage but sitemap is being generated with every request and takes so long to load with huge populates, what would be best practice in such case?

@yann-eugone
Copy link
Member

I'm not sure I get this right
But it seems that you are not dumping your sitemap
If so, you should have a look to the dedicated documentation

The idea is that when you have big sitemaps (and I would recommend it even for small ones), you should not generate the sitemap every time, but generate it once and for all, and store it in your public dir
That way, your application server (Apache, Nginx...) shall serve the file, and Symfony won't be bothered at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants