cache updates
- Default expiration time setting
The process XML is loaded into the program memory to parse the process flow, without reading the database record every time, especially for performance considerations. The cache has an expiration time setting, the default is 1 day.
Please refer to the file code : MemoryCachedHelper.cs
var policy = new CacheItemPolicy();
//absolute time duration expired
policy.AbsoluteExpiration = DateTimeOffset.Now.AddDays(1); _xpdlCache.AddOrGetExisting(strMD5, xmlDoc, policy);
- Cache reset
The ResetCache() interface is used to re-read the process record after the process XML is updated. Ensure that the cache is cleared and the XML text is read again.