Indyco Explorer uses an internal in-memory cache to optimize certain operations, such as retrieving projects from the database.

This cache mechanism stores versions of projects that have been published and periodically removes items that have not been accessed for a specified period, saving server resources. 


Cache Cleanup Mechanism

The cache cleanup mechanism is designed to remove outdated items from the cache. This helps in conserving server resources and ensuring that the cache does not grow indefinitely. The cleanup process runs daily at 00:00 and removes items that have not been accessed for a configured number of days. By default it's 7 days.


Configuration via appsettings

To customize the number of days that the cache lives you can override the default values by modifying the appsettings.Production.json file by adding the following configuration inside the Indyco section:

"CacheExpirationDays": 7,


Configuration via environment variables (docker)

To customize the number of days that the cache lives via environment variables you can override the default values with the following definition: 

Indyco__CacheExpirationDays = 7