Manual:Hooks/SetupAfterCache

SetupAfterCache should only be used for initialization that actually needs to run right after $wgMemc stuff is created. Everything else should use $wgExtensionFunctions. If you need to use the RequestContext, consider BeforeInitialize and ApiBeforeMain hooks instead.