dimagi/core-hq — pull request #394 by czue (2012-12-17 10:53:11+00:00)
Title: Make the location selector faster after first load using caching, misc cleanup

The bulk of the diffs in this PR are moving the caching stuff from private to the generic.py module to a standalone cache.py module. also included are minor code tweaks to how caching works (functionally it's basically the same), and the ability to cache the list of locations that comes back from the LocationField object. This is to prevent excessive load times for the PSI commtrack reports.