I just now made the function look like this:
function getOtherNamespaces () { $a = array () ; # modification by Jimbo return $a;
I assume that forces it to return an empty array and not run the rest of the code.
The site didn't die, so I'll assume that's o.k. as an emergency measure.
Also, I turned on pagecaching. This seems to have helped somewhat.
Magnus Manske wrote:
I identified the "getOtherNamespaces" function in wikiPage.php as a major bad guy. It is used to link to the appropriate Talk namespace in the sidebar and the footer. On my test installation, returning no other namespaces (an empty array) cuts the time to generate a page in half! (Tested with the "Biology" article using ab -n 20 -c 4)
I don't have time right now to fix this, someone please!!!!!!! help :)
Magnus _______________________________________________ Wikitech-l mailing list Wikitech-l@ross.bomis.com http://ross.bomis.com/mailman/listinfo/wikitech-l