Clear() public static method

Clears the Redirection table.
public static Clear ( ) : void
return void
コード例 #1
0
 protected void btnClearCache_Click(object sender, EventArgs e)
 {
     Redirections.Clear();
     Content.ClearPseudoCache();
     Content.InvalidateAllPages();
     PrintSystemStatus();
 }
コード例 #2
0
        /// <summary>
        /// Invalidates all the cache Contents.
        /// </summary>
        public static void InvalidateAllPages()
        {
            Cache.ClearPageCache();
            Redirections.Clear();

            foreach (var pageProvider in Collectors.PagesProviderCollector.AllProviders)
            {
                pageProvider.PruneContentCache();
            }
        }
コード例 #3
0
ファイル: Content.cs プロジェクト: EdenLiang/screwturnwiki
 /// <summary>
 /// Clears the pseudo cache.
 /// </summary>
 public static void ClearPseudoCache()
 {
     Cache.ClearPseudoCache();
     Redirections.Clear();
 }
コード例 #4
0
ファイル: Content.cs プロジェクト: EdenLiang/screwturnwiki
 /// <summary>
 /// Invalidates all the cache Contents.
 /// </summary>
 public static void InvalidateAllPages()
 {
     Cache.ClearPageCache();
     Redirections.Clear();
 }