]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb
Merge remote-tracking branch 'github/pull/426'
[chef.git] / cookbooks / wiki / templates / default / mw-ext-Scribunto.inc.php.erb
index 4c9eb99adc2eb64c87b9e3fb54fafac92f616998..589817a085f8e0f758fc4246f75f75e189a0bb28 100644 (file)
@@ -6,9 +6,14 @@ wfLoadExtension('Scribunto');
 // Use standalone mode
 $wgScribuntoDefaultEngine = 'luastandalone';
 
+// Increase cpu limit (default=7) per https://www.mediawiki.org/wiki/Topic:S9y4s52ue722seam
+// Documented in https://www.mediawiki.org/wiki/Extension:Scribunto#LuaStandalone
+// Max running time in seconds
+$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 15;
+
 // Set path to lua interpreter
 $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';
-        
+
 // Enable syntax highlighting
 $wgScribuntoUseGeSHi = true;