X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/abe750320d58b744400f97161741e4ab26711034..403c2b1aa0cc0b1f9d5677a69c665dc0bdae918c:/cookbooks/mediawiki/templates/default/LocalSettings.php.erb diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index f50ae6866..0382bb22e 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -239,8 +239,8 @@ $wgDisableCounters = TRUE; # Disable IP in Header to avoid cache issue $wgShowIPinHeader = FALSE; -# Job Runs mostly by cron -$wgJobRunRate = 0.01; +# Job Runs by cron +$wgJobRunRate = 0; # dissolves double redirects automatically $wgFixDoubleRedirects = TRUE; @@ -361,7 +361,7 @@ $wgExtraNamespaces[NS_PROPOSAL] = 'Proposal'; $wgNamespacesWithSubpages[NS_PROPOSAL] = TRUE; $wgContentNamespaces[] = NS_PROPOSAL; define('NS_PROPOSAL_TALK', 3001); -$wgExtraNamespaces[NS_PROPOSAL_TALK] = 'Proposal talk'; +$wgExtraNamespaces[NS_PROPOSAL_TALK] = 'Proposal_talk'; $wgNamespacesWithSubpages[NS_PROPOSAL_TALK] = TRUE; $wgNamespacesToBeSearchedDefault[NS_LANG_DE] = TRUE; @@ -383,10 +383,7 @@ $wgForceUIMsgAsContentMsg = array( 'mainpage-url', 'mapfeatures-url', 'contribut <% end -%> <% if @name == "wiki.openstreetmap.org" -%> -# setting the search weight of the main wiki's proposal namespace lower then general talk pages (0.2), but -# higher then wiki project namespace (0.1) -# Documentation at https://phabricator.wikimedia.org/source/extension-cirrussearch/browse/master/docs/settings.txt$693 -$wgCirrusSearchNamespaceWeights = array_merge ( $wgCirrusSearchNamespaceWeights, array ( NS_PROPOSAL => 0.15 )); +# Placeholder for the wiki.openstreetmap.org specific config <% end -%> <% if not(@mediawiki[:private_accounts]) and not(@mediawiki[:private_site]) -%> @@ -422,3 +419,8 @@ unset( $wgRemoveGroups['autoconfirmed'] ); unset( $wgGroupsAddToSelf['autoconfirmed'] ); unset( $wgGroupsRemoveFromSelf['autoconfirmed'] ); <% end -%> + +# Increase curl timeout to allow parsoid requests to heavy pages like Map Features +# Mediawiki 1.38 has fix to allow this to be set by $wgVirtualRestConfig +# https://phabricator.wikimedia.org/T285478 +$wgHTTPTimeout = 90;