Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How frequently can I safely cache the baseUrl?

Tags:

docusignapi

Before each request to the DocuSign REST API, I make a call to https://demo.docusign.net/restapi/v2/login_information. But the only information I need from that response is the first baseUrl attribute, which never seems to change. If it truly never changes, I should just store the value as a constant, cutting my number of requests in half.

How often (or under what circumstances) does the baseUrl change, assuming my integration key is constant? More importantly, how infrequently can I safely cache the baseUrl?

like image 627
Andrew Bezzub Avatar asked Jun 17 '15 23:06

Andrew Bezzub


1 Answers

Since it is a third-party API outside your control, I would recommend that you follow the requirements of the documentation, and make the call each time. There's no telling when they might change the internals of the API.

like image 122
moodboom Avatar answered Sep 18 '22 11:09

moodboom