learningequality/ka-lite — pull request #821 by bcipolli (2013-10-13 15:04:22+00:00)
Title: Cache the own_device, to avoid (innumerable) queries for this object 

(which, after install, never changes)

For logging in, for example, this reduces queries from ~40 to ~25.

Testing:
* Tested fresh install (works)
* Ran test suite (no unexpected failures)

PR Help:
* Timing: 24 hours. This is a small change, with appropriate testing.
* @jamalex could you review the code change?