My DocumentCache folder is not cleaning. Our requirement is to delete documents from the cache "soon" after viewing. However, the folder seems not to be cleaning at all.
The application is an
ASP.Net MVC application hosted in IIS.
DocumentUltimate version 4.7.0 - am in progress to upgrade to latest (we have a change process).
web.config appsettings:
<add key="CachePath" value="~/App_Data/DocumentCache" />
<add key="CacheMaxAge" value="-1.00:00:00" />
<add key="CacheAutoTrimInterval" value="00:5:00" />
<add key="CacheWaitTimeout" value="00:1:00" />
<add key="CacheEncryptionEnabled" value="false" />
C# controller
var configuration = new DocumentUltimateWebConfiguration
{
CacheLocation = ConfigurationManager.AppSettings["CachePath"],
CacheMaxAge = TimeSpan.Parse(ConfigurationManager.AppSettings["CacheMaxAge"]),
CacheAutoTrimInterval = TimeSpan.Parse(ConfigurationManager.AppSettings["CacheAutoTrimInterval"]),
CacheWaitTimeout = TimeSpan.Parse(ConfigurationManager.AppSettings["CacheWaitTimeout"]),
CacheEncryptionEnabled = Boolean.Parse(ConfigurationManager.AppSettings["CacheEncryptionEnabled"])
};
The setting for CacheMaxAge to be -1 comes from threads in the support community as recommendation for "short lived" caching. If we set this to 1 day we see the same behaviour (documents not cleaned up).
Any suggestions why / how documents would not be cleaned up?