Yields each object in the given ``collection``.
    The objects are loaded from cache and failing that,
    from disk.

def each_object(collection):
    """Yields each object in the given ``collection``.
    The objects are loaded from cache and failing that,
    from disk."""
    c_path = collection_path(collection)
    paths = glob('%s/*.%s' % (c_path, _ext))
    for path in paths:
        yield load_object_at_path(path)