开发者

Clear Cache of a Compiled ASP.NET website?

I have various caches on my compiled开发者_JAVA技巧 website. However, I need to clear all these caches. Is there a way of doing this (without having to restart the server!)?

Thanks! Curt


What cache mechanism are you using?

One typical method would be to have a routine such as:

        foreach (DictionaryEntry objItem in Cache)
        {
            Cache.Remove(objItem.Key.ToString());
        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜