From 6694697e2851ac362546d34cf12f146633be3782 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Wed, 26 Sep 2018 21:08:09 +0100 Subject: [PATCH] Raise maximum call limits for Lua parser funcs Raise expensive lua (and other function) call limits to match WP Docs: https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit Wikipedia's Config: https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php Closes #194 --- .../mediawiki/templates/default/LocalSettings.php.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index 11bbd022b..b13885937 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -320,6 +320,13 @@ $wgNamespacesToBeSearchedDefault[NS_LANG_NL] = TRUE; $wgNamespacesToBeSearchedDefault[NS_LANG_RU] = TRUE; $wgNamespacesToBeSearchedDefault[NS_LANG_JA] = TRUE; + +# Raise expensive lua (and other function) call limits to match WP +# Docs: https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit +# Wikipedia's Config: https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php +$wgExpensiveParserFunctionLimit = 500; + + <% if @mediawiki[:site_notice] -%> $wgSiteNotice = "<%= @mediawiki[:site_notice] %>"; <% end -%> -- 2.39.5