Author: sergey.chernyshev
Description:
It's not necessary to regenerate sitemap files if it didn't actually change.
This might not make sense for Wikipedia where something changes for sure within a day, but might be quite useful for smaller sites.
One simple solution (considering current code structure) would be to generate files into temporary folder simultaneously calculating last modified timestamps and only moving new files in place of old ones if they actually have new entries (calculated timespamps are newer then old file's timestamps). Might also be a good idea to change file's timestamp to match calculated last modified timestamp.
Index sitemap should also be created using these last modified timestamps.
Version: unspecified
Severity: minor