Created
June 7, 2011 18:18
-
-
Save bdukes/1012808 to your computer and use it in GitHub Desktop.
Attempts to clear DotNetNuke page output cache. Using the PE MemoryOutputCachingProvider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OutputCachingProvider.Instance(Host.PageCachingMethod).PurgeCache(portalId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OutputCachingProvider.RemoveItemFromAllProviders(tabId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (var provider in OutputCachingProvider.GetProviderList()) | |
{ | |
provider.Value.PurgeCache(portalId); | |
} | |
foreach (var provider in ModuleCachingProvider.GetProviderList()) | |
{ | |
provider.Value.PurgeCache(portalId); | |
} | |
DataCache.ClearCache(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment