add ability to set cache_location via configuration