Last modified: 2014-08-30 23:40:23 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=../
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.)
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!
s/in in/it in/ All items controlled by the script should be adjustable independently of LocalSettings.php .