fix cache expiration issue when the url is passed via options for the model