Last modified: 2013-11-06 09:55:55 UTC
Currently just fetching user options on Commons is slow due to a slow template in the gadget descriptions section. This actually causes deadlocks in ApiOptions when the watchlist token has to be created, the slow parsing happens, and then the actual preferences update happens. This is all pointless, since the API doesn't need those checkbox labels anyway... One can profile this using eval.php on commons using: Profiler::setInstance( new ProfilerSimpleText( array() ) ); Profiler::instance()->setTemplated( true ); $preferences = array(); var_dump( GadgetHooks::getPreferences( $wgUser, $preferences ) ); wfLogProfilingData();