The Maximum Affiliate Cache Age defines the cache Time to Live (TTL) for your Infusionsoft Affiliate data in the Memberium database in seconds.
The default value is 0, which means no caching, the affiliate records will be refreshed on each and every login.
To cache the data for one hour, you would set the Cache Age to 3600. To cache the data for one day, you would set the Cache Age to 86400.
There is no upper limit on the amount of time you can cache the affiliate data for. The lower limit is 0.
What is Caching?
Infusionsoft data is expensive to retrieve because of the relatively long time it takes to send the request to the Infusionsoft server, and then retrieve the results.
Caching is used to store this data in the local database for a limited time, for later reuse, so that it does not have to be retrieved every time it’s needed. This can reduce the load on your API, increase the speed of API heavy actions such as logging in, and improve your user’s experience, and make your site more resilient to any outages in Infusionsoft’s API.
Memberium allows you to define how long your Infusionsoft data will be locally stored and used before refreshing it from Infusionsoft’s servers.
Why do I want this?
Retrieving data in realtime at login from Infusionsoft not only consumes your API calls, but is hundreds of times slower than retrieving the data locally. A typical Infusionsoft API call requires approximately 1/2 second in order to return a single response, assuming that the API succeeds on the first attempt. By using caching, your system performs faster, can handle more users, uses less API, and can make your system more scalable and reliable by decreasing the constant dependency on the API