Stanford-Online/class2go — pull request #986 by sefk (2012-10-07 00:38:26+00:00)
Title: Readme edits, user profile middleware perf fix

1. Readme edits.

2. Preemptive fix to too frequent updates to user profile from too many updates (#985). Something that was on my list of things that I wanted to fix before we went live and saw any real load. Tested by logging in as a known account (professor_2 in this case) and then watching the user profile table update only at the desired frequency. Used:
mysql --batch -e "select * from c2g_user_profiles where id=1"

Convenient to override the default update frequency (once per day) with something smaller for testing. I used twenty seconds by putting this in my settings.py:
PROFILE_UPDATE_RESOLUTION=20

Since this is middleware it's a bit scarier by definition, so worthy of a little closer code review @jbau, thanks. Jenkins tested it green btw: http://jenkins.dev.c2gops.com/job/Class2Go/253/

3. declutter the nightly bar chart a little by excluding demo/test classes.