Dear,
I'm using Output Cache Provider for Page Setting, and set cache Duration 6000 seconds
So now, i had try using some function for clear cache, but not working
DataCache.ClearHostCache(true);
DataCache.ClearCache();
DataCache.ClearPortalCache(PortalSettings.PortalId, true);
And also, I try find in Scheduler for clear cache
var portals = PortalController.Instance.GetPortals(); foreach (KeyValuePair kvp in OutputCachingProvider.GetProviderList()) { try { foreach (PortalInfo portal in portals) { kvp.Value.PurgeExpiredItems(portal.PortalID); kvp.Value.PurgeCache(portal.PortalID); ScheduleHistoryItem.AddLogNote(string.Format("Purged output cache for {0}. ", kvp.Key)); } } catch (NotSupportedException exc) { //some output caching providers don't use this feature Logger.Debug(exc); } }
Not working too. Because i do not permission for user can login Server, so i want creat one button for clear cache all my portal.
I mean, i want creat button like
and
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.