
On second thought, moving the cache retrieval out of the loop should eliminate
up to ten or so function calls per page view. I don't know how expensive they
are, but let's take what we can.

dilawar/moodle