add updateCache method