ushahidi/Ushahidi_Web — pull request #160 by rjmackay (2011-12-13 21:57:22+00:00)
Title: Performance patch fron CCNZ deployment

Notes from Nigel's commit:
Cache geometry data from DB to prevent query-in-a-loop madness.

Before this, geometry data (of which there isn't much), is asked for in
a loop for each incident (of which there can be many).

This patch grabs all of the geometry data the first time any of it is
asked for, and caches in a lookup table within the app, saving thousands
of pointless queries.