Stanford-Online/class2go — pull request #1898 by jrbl (2013-01-16 00:33:03+00:00)
Title: Jrbl refactoring left nav

@jbau, please take a look.

I do a lot of fidgety things to leftnav() and friends, but the real gains come from strategic caching in get_common_page_data. Holy wow.

Loading /db/winter2013/leftnav on my laptop has gone from 1200 SELECTs to 6.

My manual testing looks good to me, but please read carefully to ensure I'm not hallucinating.