Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Plugins by

Google says it plays a critical role (for customer search engines):


"Specify the lastmod sitemap XML tag for each URL in your Sitemap. This tells Googlebot when the content was changed and plays a critical role in determining whether to consider the URL for on-demand indexing."

Also tag "changefreq" missing, but this might seem not so important.

Anybody else is voting for adding this to XML Sitemap v1.1.1?

Also Plugin "http://askive.cmsbox.jp/docs-plugin-advanced-xml-sitemap" doesn´t seem to have the tags.

1 Answer

0 votes

That plugin takes data from different sources: questions, users, tags, questions lists for each category and pages in category. Now, how would you fill that lastmod field for each of those sources?

Lets take the questions one, which should be the easiest one. I guess a good approach here would be the one similar to the Activity page. So you get the last mod from crossing information of the question, answers and comments, and the last one in being edited or posted is the one from which you will get the lastmod.

Doing that for each question in the site will kill your server. So you might be tempted to just use the information from the question itself but you will only get the asked or an edited date, even if new answers are being added to the question. So, it wouldn't help much for the questions.

Regarding users' source, the lastmod doesn't seem to make much sense. You could consider using a logged in date but that has nothing to with a last seen so it would be again considerably fake.

Regarding tags maybe it would make sense to get the last question for each tag but again, doing that for each tag will still considerably decrease performance.

Categories I guess they fit in a similar place as tags.

So it is not something complex but it is not performant at all. If you want to develop this on your own, then you can start from this branch in which I've tuned performance of the plugin a little bit: https://github.com/pupi1985/question2answer/commits/patch-38