dimagi/commcare-hq — pull request #1147 by snopoke (2013-09-11 14:05:50+00:00)
Title: cache domain module config and adm enabled domains

DOMAIN_MODULE CONFIG was being loaded 6 times for every load of the reports page.

```
[couchdbkit] GET raw output
[couchdbkit] Couch GET 1
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 39.522, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
[couchdbkit] Couch GET 2
[couchdbkit] doc_id: 655a8581da22f05fb953b19d8561b079, duration: 2.254, doc_type: WebUser, response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/users/models.py:996
[couchdbkit] Couch GET 3
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 39.008, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
[couchdbkit] Couch GET 4
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 39.755, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
[couchdbkit] Couch GET 5
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 39.322, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
[couchdbkit] Couch GET 6
[couchdbkit] doc_id: ADM_ENABLED_DOMAINS, duration: 38.122, doc_type: [unknown], response: 404
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:43
[couchdbkit] Couch GET 7
[couchdbkit] doc_id: INDICATOR_CONFIGURATION, duration: 39.228, doc_type: [unknown], response: 404
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/indicators/utils.py:7
[couchdbkit] Couch GET 8
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 37.85, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
[couchdbkit] Couch GET 9
[couchdbkit] doc_id: DOMAIN_MODULE_CONFIG, duration: 40.553, doc_type: [unknown], response: 200
[couchdbkit] /home/simon/dev/projects/commcare-hq/corehq/apps/domain/utils.py:33
```