Answer the question
In order to leave comments, you need to log in
How to update the sitemap?
Good day.
I have a self-written site and I made a module for working with a site map (xml)
Once in a while (I have it once a day), the map is completely recreated. Those. The urls of the corresponding posts on the site do not change in the current sitemap, everything is simpler - each time the map is completely deleted and a new sitemap.xml is created.
Questions
1) Is the logic supposed to be like this? Those. in fact, we create a new map every time? (And don't we work with the already created one, changing only some xml nodes in the once created file?)
2) How often should the map be created / recreated? Is there any recommended time interval?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question