Only for 1.9 / Elgg-master
function elgg_get_metadata_cache renamed to _elgg_get_metadata_cache since 07-2013 in Elgg-master.
_elgg_get_metadata_cache ist marked as private, but it was also marked in 1.8 branch.