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

Add sitemap for sounds #1821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add sitemap for sounds #1821

wants to merge 1 commit into from

Conversation

alastair
Copy link
Member

Issue(s)
Fixes #1374

Description
Add a new sitemap.xml to include a list of all of our pages and when they were updated.

This needs to be tested with more sounds in the database - theoretically django should automatically split it into 50k items per sitemap (the max allowed). But this is a relatively expensive db query to get the information. It's possible that we can reduce the number of fields that we retrieve.
There is also a way of caching this data: https://docs.djangoproject.com/en/5.1/ref/contrib/sitemaps/#creating-a-sitemap-index which we could take a look at.

Also consider which other items to add to the sitemap - packs? forums?

The URL also needs to be added to robots.txt

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

Successfully merging this pull request may close these issues.

Sitemap
1 participant