public static void ClearCache() { CachingProvider.Instance().Clear("Prefix", "DNN_"); using (dictionaryCache.GetWriteLock()) { dictionaryCache.Clear(); } //log the cache clear event var log = new LogInfo { LogTypeKey = EventLogController.EventLogType.CACHE_REFRESH.ToString() }; log.LogProperties.Add(new LogDetailInfo("*", "Refresh")); LogController.Instance.AddLog(log); }
public static void ClearCache() { CachingProvider.Instance().Clear("Prefix", "DNN_"); using (ISharedCollectionLock writeLock = dictionaryCache.GetWriteLock()) { dictionaryCache.Clear(); } //log the cache clear event var objEventLogInfo = new LogInfo(); objEventLogInfo.LogTypeKey = EventLogController.EventLogType.CACHE_REFRESH.ToString(); objEventLogInfo.LogProperties.Add(new LogDetailInfo("*", "Refresh")); var objEventLog = new EventLogController(); objEventLog.AddLog(objEventLogInfo); }