Last modified: 2014-08-30 23:40:23 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 T19748, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17748 - Allow specifying what namespaces to generate sitemaps for, from the php command line
Allow specifying what namespaces to generate sitemaps for, from the php comma...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.14.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-02 05:10 UTC by Dan Jacobson
Modified: 2014-08-30 23:40 UTC (History)
3 users (show)

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


Attachments

Description Dan Jacobson 2009-03-02 05:10:04 UTC
There is no way to specify  what namespaces to generate sitemaps for
from the command line.

One ends up having e.g.,
 $wgSitemapNamespaces=array(NS_MAIN,NS_TALK,NS_USER,NS_USER_TALK,NS_PROJECT,
 NS_PROJECT_TALK,NS_TEMPLATE_TALK,NS_HELP,NS_HELP_TALK,NS_CATEGORY,NS_CATEGORY_TALK);
sitting around LocalSettings.php, read on every page view all day long,
even though one only generates sitemaps once a month. Or else one must append it each
time one wants to make a sitemap.

There isn't even a way to somehow on the command line
$ php [TELL PHP THOSE VALUES HERE] generateSitemap.php --server=http://.... --fspath=../
Comment 1 Andre Klapper 2014-08-30 21:49:26 UTC
Could you elaborate on the underlying motivation / usecase here?
Would you like to create sitemaps for certain namespaces once a month, while more or less often for other namespaces? Does
> sitting around LocalSettings.php, read on every page view all day long
imply some performance concerns?


(For the records: https://www.mediawiki.org/wiki/Manual:GenerateSitemap.php and bug 30344 implemented $wgSitemapNamespacesPriorities.)
Comment 2 Dan Jacobson 2014-08-30 23:38:02 UTC
All I know is I have a cron job that runs once a month to generate sitemaps,
and I have to put the specifications for in in LocalSettings.php, which is read a million times a month. What a waste!
Comment 3 Dan Jacobson 2014-08-30 23:40:23 UTC
s/in in/it in/

All items controlled by the script should be adjustable independently of LocalSettings.php .

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


Navigation
Links