Tweak the getObjects method of the Cache module