Maximum Contact Cache Age

This Article Applies to
OTHER Articles Available

This value defines the cache Time to Live (TTL) for your ActiveCampaign data in the Memberium database in seconds. Contact caching was one of the original features that Memberium was designed to support since version 0.1.

The default value is 0, which means no caching, the contact 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 contacts for. The lower limit is 0.

What is Caching?

ActiveCampaign data can be expensive to retrieve because of the relatively long time it takes to send the request to the ActiveCampaign servers and then retrieve the results.

Caching can be used to store this data in the WordPress database for a set amount of time (defined by this setting) so that Memberium does not have to contact ActiveCampaign each time a user logs in. This has the result of decreasing the loading time experienced during login.

Memberium allows you to define how long your ActiveCampaign data will be locally stored and used before refreshing it from ActiveCampaign servers. This setting is called “Maximum Contact Cache Age” and can be found under the Settings > Performance Tab:

Why do I want this?

Memberium employs algorithms to cache your ActiveCampaign contact data locally for faster access. Retrieving data in realtime at login from ActiveCampaign is significantly slower than retrieving the data locally. 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

Updating the Cache Early

To update the Memberium Cache with new data before it expires, you should use the Update Contact Webhook function to notify Memberium that there is an update to a contact. The best way to implement this is by following the linked guide that will fully automate that process. Each time an update happens in ActiveCampaign, ActiveCampaign will fire the webhook that notifies Memberium of the update.


Interested in taking your site performance and scalability to the next level? Have questions about implementing this? Contact us by going to

Related Posts:

9 ways to add more value to your membership site

Table of Contents

This Article Applies to

Related Posts

How to Connect LearnDash 3.0 with ActiveCampaign using Memberium

LearnDash is a feature-rich WordPress LMS that provides cutting edge elearning methodology for WordPress based web sites. In addition to the plugin itself, the company provides practical and experience driven guidance for setting up online courses. LearnDash has become the most trusted WordPress LMS plugin for major universities, continuing education providers, and entrepreneurs world-wide. Here’s how Memberium integrates with LearnDash.

Read More »

How to Migrate to Memberium for ActiveCampaign

The point of this guide is to provide you with a high-level overview of how to migrate from another membership platform to Memberium for ActiveCampaign.

If you’re migrating from AccessAlly, we have a more detailed guide found here.

If you’re migrating from ActiveMember360, we have a more detailed guide found here.

There are 3 basic steps to any migration, and we’ll cover each in as much detail as we can without being specific to any single platform you might be migrating from.

Read More »

Ready to See How You Can Automate Your Course or Membership With Memberium for ActiveCampaign?

Watch this quick demo video to see how Memberium works. Discover how thousands of successful business owners use Memberium to sell their membership programs and how you can too! If you’re ready to get started, you can check out our plans and pricing here…