protected void btnClearCache_Click(object sender, EventArgs e) { Redirections.Clear(); Content.ClearPseudoCache(); Content.InvalidateAllPages(); PrintSystemStatus(); }
/// <summary> /// Invalidates all the cache Contents. /// </summary> public static void InvalidateAllPages() { Cache.ClearPageCache(); Redirections.Clear(); foreach (var pageProvider in Collectors.PagesProviderCollector.AllProviders) { pageProvider.PruneContentCache(); } }
/// <summary> /// Clears the pseudo cache. /// </summary> public static void ClearPseudoCache() { Cache.ClearPseudoCache(); Redirections.Clear(); }
/// <summary> /// Invalidates all the cache Contents. /// </summary> public static void InvalidateAllPages() { Cache.ClearPageCache(); Redirections.Clear(); }