What is caching?
Caching is the process of temporarily storing data in a local repository to prevent excessive calls to an external data source. This reduces the amount of web traffic on the client side and reduces the load on the external data source server side.
Why you need to enable caching
Due to the high volume of requests that are processed on the F&R API on a hourly rate, we have enabled caching to reduce the need for repeated database requests on our servers. This means that the data retrieved from the API call will be valid for a set period of time before the client is required to make a subsequent call for updated information. Any further calls to the API before this time period has elapsed are redundant as the data will not be updated from the database.
In order to reduce the number of redundant API calls, web developers should not call the F&R API endpoints any more frequently than once every 20 mins. This will ensure that the latest data is always available to your end users, and you will not be making wasted calls to the API to return identical data.
Developers should employ best practices when making API calls by ensuring that connections are short lived and closed when data transfer is complete.
If a specific client is deemed to be in breach of these guidelines, they may be blocked for a short period by the API security layer. Persistent offenders may be permanently blocked.