if limit is specified on first call, ignore it, retrieve all, so that we can cache all entries, but only return the required number of entries at the end
if limit is specified on first call, ignore it, retrieve all, so that we can cache all entries, but only return the required number of entries at the end

dilawar/moodle