There are 3 different ways (polling modes) to control caching.
Auto polling (default)
In auto polling mode, the ConfigCat SDK downloads the latest values automatically and stores them in the cache. This is done in every 60 seconds by default. You can set the polling interval to any number between 1 second and int max.
In lazy loading mode, the ConfigCat SDK downloads the latest setting values only if they are not present in the cache, or if the cache has expired. You can set the cache Time To Live (TTL) to any number also.
Manual polling gives you full control over when the
config.json (with the setting values) is downloaded.
The ConfigCat SDK will not download the
You can (and should) update the cache manually, by calling a
forceRefresh() - this will download the latest
config.json and update the cache.
This animation explains the different polling modes: