Last modified: 2013-06-18 14:45:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14862, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12862 - Don't regenerate sitemap files if nothing changed
Don't regenerate sitemap files if nothing changed
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-01 15:38 UTC by Sergey Chernyshev
Modified: 2013-06-18 14:45 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sergey Chernyshev 2008-02-01 15:38:03 UTC
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.
Comment 1 Dan Jacobson 2008-08-21 19:20:45 UTC
All I know is I use a cronjob to generate the sitemaps every month.

Well, indeed for small wikis, if no page at all in a namespace
changes, then that sitemap.gz for that namespace does not need to be
replaced.

Anyway, Google etc. will still see the date of the individual files are the
same as last time.

So though the idea is worthy, the savings aren't very big.
Comment 2 Antoine "hashar" Musso (WMF) 2013-02-18 10:24:29 UTC
On a small wiki the sitemap is fast to produce, I don't think there is any point in saving a few CPU cycles by adding some more complexity.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links